vim-gnome "swap already exists" dialog erroneously triggers hot corners
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: vim-gnome
This bug is described (and has been fixed) in Suse: https:/
Ubuntu 9.10
Package: vim-gnome
Installed: 2:7.2.245-2ubuntu2
Expected: Swap dialog would just go away and let me continue working
Happened: Expo was triggered, requiring me to double-click back into my working desktop
Vim contains a workaround (called a "Terrible hack" in the source comments) for a KDE 3.1 bug that warps the mouse pointer off-screen and back. Unfortunately, this activates the upper-left hotcorner if the user has it configured. In Ubuntu, this is very often the case with Compiz. Personally, I have the Expo action mapped to it, so every time I close the "swap already exists" dialog, it zooms out and I have to click back into it.
The bug is in gui_gtk.c of the Vim source, and just needs a few lines commented out. I've attached a patch for that file that does just that.
I've send a bug report to the Vim team as well, but this is an easy-to-fix, low-risk bug that is highly perplexing and fairly disruptive to end-users, and affects anyone who:
1) Uses gVim/vim-gnome
2) Has an action mapped to the upper-left hotcorner.
As such, it would be nice to get fixed in Ubuntu's build of Vim, until Vim themselves take care of it.
Steps to reproduce:
1) Configure Compiz to map an action to the upper-left corner (such as Expo)
2) Open up gVim
3) Type ":e test<Return>" to start editing a test file and generate a swap file
4) Open another instance of gVim
5) Type ":e test<Return>" to attempt to edit the test file
6) Click "Edit Anyway" to dismiss the dialog
7) The action will be triggered.
It should be noted that opening two instances of Vim are not necessary to trigger the bug (it happens whenever a swap file is present), but it is the easiest way to reliably generate a swap file. Any files created can, of course, be deleted after the test.
Architecture: i386 bbb28f4473c4869 2f 5fa1c4660280da3 08 dules: wl ature: Ubuntu 2.6.31- 19.56-generic
CheckboxSubmission: 51409d673ef5a15
CheckboxSystem: d00f84de8a55581
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelMo
Package: gnome-vim (not installed)
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
ProcVersionSign
Uname: Linux 2.6.31-19-generic i686
UserGroups: adm admin cdrom dialout lpadmin mythtv plugdev sambashare