Iruyan-Zak / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

On GNOME, modal dialog "file has changed" does not receive focus when opened #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce on Ubuntu GNOME 13.04 (trunk):

1. Open a file in GVIM.
2. Edit the file in another program.
3. Switch back to GVIM using one of
    * Alt-Tab switcher
    * Clicking on GVIM's title bar (not the client area)
    * The "Activities" switcher
    A modal dialog pops up saying 'W11: Warning: File "test" has changed since editing started'.

Expected: The modal dialog is focused, so that I can immediately dismiss it by 
pressing Enter or reload the file by pressing L.

Actual: The modal dialog is not focused. Keyboard input appears to be ignored.

Workaround: Switch away from GVIM and then back. (For instance, Alt+Tab twice.) 
The dialog receives focus. (You could also click using your mouse if you have 
time for such things.)

Original issue reported on code.google.com by lastor...@gmail.com on 12 Oct 2013 at 12:56

GoogleCodeExporter commented 9 years ago
Not knowing GTK at all, my investigation efforts stopped at 
create_message_dialog and gui_mch_dialog in gui_gtk.c. There is either 
something missing there, or there's a bug in the GNOME Shell window manager. 
Not much, but maybe this helps someone... :)

Original comment by lastor...@gmail.com on 13 Oct 2013 at 9:46

GoogleCodeExporter commented 9 years ago
FWIW, on Kubuntu 13.04, using the distro vim 7.3.547, (and also 7.4.52), with 
or without -u NONE, I don't see this; the modal dialogue gets the focus.  

Regards, John Little

Original comment by John.B.L...@gmail.com on 16 Oct 2013 at 4:08