GNOME Bugzilla – Bug 327878
Run application dialog instantly gets sent to the back because timestamp from Metacity is ignored
Last modified: 2006-01-21 17:17:00 UTC
When pressing the hotkey for the run application dialog, the dialog pops up and instantly disappears behind the other windows on my desktop (or just loses focus). As I most certainly want to type in that dialog, this is quite annoying, having it not losing focus would be great. I'm not sure if this should go in the metacity product, please redirect if needed.
Confirm this, I saw this yesterday
see bug 326159 comment 11 *** This bug has been marked as a duplicate of 326159 ***
No, this is not a duplicate; this happens with a fixed version of metacity and happens for focus windows other than the terminal. It's a separate bug, and one introduced by gnome-panel. (downgrading gnome-panel fixes the bug). I'm investigating.
From verbose debug log: KEYBINDINGS: Processing key press event, keysym: F2 state: 0x18 window: (no window) KEYBINDINGS: Running handler for panel_run_dialog KEYBINDINGS: Sending panel message with timestamp 1205495514 ... STARTUP: Window 0xc03d02 (Run Applic) has _NET_WM_USER_TIME of 1205479382 ... WINDOW_STATE: Showing window 0xc03d02 (Run Applic), shaded: 0 iconic: 0 placed: 0 STARTUP: COMPARISON: net_wm_user_time_set : 1 net_wm_user_time : 1205479382 initial_timestamp_set: 0 initial_timestamp : 0 STARTUP: COMPARISON (continued): focus_window : 0x1c026c8 (newren@amr) fw->net_wm_user_time : 1205495162 STARTUP: window 0xc03d02 (Run Applic) focus prevented by other activity; 1205479382 < 1205495162 WINDOW_STATE: Window 0xc03d02 (Run Applic) does not focus on map, and does not place on top on map. Note that the user time of the Run Application window does not match the timestamp that metacity sent to gnome-panel; this appears to be a gnome-panel bug. (downgrading gnome panel to cvs as of 2006-01-15 happens to fix this bug; I'm doing a slow binary search with cvs update && make && make install to try to narrow down to the appropriate commit since the zillions-of-different-ChangeLogs in gnome-panel is a royal pain in the butt to navigate)
'cvs update -Pd -D 2006-01-17' fixes this; 'cvs update -Pd -D 2006-01-18' breaks it again. But I have to go teach, so can't pinpoint further right now.
Created attachment 57744 [details] [review] Silly Vincent, timestamps are for usage! This fixes the bug. I don't know why Vincent thought * panel-run-dialog.c: (panel_run_dialog_new): we don't need the activate time here as he wrote in the ChangeLog, but it just ain't true. :-)
grmlmlmlml Sorry :-) (I totally forgot about Alt+F2 and wondered why it was useful)
*** Bug 328005 has been marked as a duplicate of this bug. ***