After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327878 - Run application dialog instantly gets sent to the back because timestamp from Metacity is ignored
Run application dialog instantly gets sent to the back because timestamp from...
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 328005 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-20 15:45 UTC by Ruben Vermeersch
Modified: 2006-01-21 17:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Silly Vincent, timestamps are for usage! (1.28 KB, patch)
2006-01-20 19:12 UTC, Elijah Newren
committed Details | Review

Description Ruben Vermeersch 2006-01-20 15:45:15 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.
Comment 1 Baptiste Mille-Mathias 2006-01-20 15:54:14 UTC
Confirm this, I saw this yesterday
Comment 2 Olav Vitters 2006-01-20 17:04:20 UTC
see bug 326159 comment 11

*** This bug has been marked as a duplicate of 326159 ***
Comment 3 Elijah Newren 2006-01-20 17:14:01 UTC
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.
Comment 4 Elijah Newren 2006-01-20 17:16:40 UTC
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)
Comment 5 Elijah Newren 2006-01-20 17:33:49 UTC
'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.
Comment 6 Elijah Newren 2006-01-20 19:12:46 UTC
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.  :-)
Comment 7 Vincent Untz 2006-01-20 20:28:26 UTC
grmlmlmlml
Sorry :-)
(I totally forgot about Alt+F2 and wondered why it was useful)
Comment 8 Olav Vitters 2006-01-21 17:17:00 UTC
*** Bug 328005 has been marked as a duplicate of this bug. ***