Pressing F10 makes desktop unresponsive
Bug #702314 reported by
Daniel Kullmann
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vim-gnome
When I press F10 in gvim, activating the menu, and then press Esc to get out of the menu, the rest of the desktop stops responding, i.e. nothing responds to clicks but gvim, and Alt-Tab also does not work. I found a nasty workaround for this problem by restarting metacity from inside gvim, but I realized today that I can also just activate the menu again with e.g. Alt-F, then Esc. This returns the state back to normal.
I don't know whether this is a problem with gvim or with gnome, but I don't have this problem with any other software
Using Ubuntu 10.10
Installed versions:
vim 2:7.2.330-1ubuntu4
vim-gnome 2:7.2.330-1ubuntu4
To post a comment you must log in.
I tried to find out what is happening using xev, and it seems that vim grabs mouse and keyboard input when F10 is pressed, but does not release the grab when Escape is pressed afterwards. So this looks like a bug in gvim.
When using F10 and Escape:
EnterNotify event, serial 17, synthetic NO, window 0x5c0001e,
root 0x15a, subw 0x0, time 16060390, (517,521), root:(2343,609),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus NO, state 16
KeymapNotify event, serial 17, synthetic NO, window 0x0,
keys: 70 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusIn event, serial 17, synthetic NO, window 0x5c0001e,
mode NotifyGrab, detail NotifyInferior
KeymapNotify event, serial 17, synthetic NO, window 0x0,
keys: 90 0 0 0 0 0 0 0 0 16 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
VisibilityNotify event, serial 17, synthetic NO, window 0x5c0001e, allyObscured
state VisibilityParti
When using Alt-F Escape:
EnterNotify event, serial 13, synthetic NO, window 0x5c0001e,
root 0x15a, subw 0x0, time 16250658, (421,493), root:(2247,581),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus NO, state 24
KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys: 0 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusIn event, serial 13, synthetic NO, window 0x5c0001e,
mode NotifyGrab, detail NotifyInferior
KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys: 90 0 0 0 0 2 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
VisibilityNotify event, serial 13, synthetic NO, window 0x5c0001e, allyObscured
state VisibilityParti
VisibilityNotify event, serial 13, synthetic NO, window 0x5c0001e, cured
state VisibilityUnobs
Expose event, serial 13, synthetic NO, window 0x5c0001e,
(1,22), width 191, height 35, count 0
LeaveNotify event, serial 13, synthetic NO, window 0x5c0001e,
root 0x15a, subw 0x0, time 16254022, (421,493), root:(2247,581),
mode NotifyUngrab, detail NotifyInferior, same_screen YES,
focus NO, state 16
FocusOut event, serial 13, synthetic NO, window 0x5c0001e,
mode NotifyUngrab, detail NotifyInferior