GNOME Bugzilla – Bug 324148
Gedit opened inside Nautilus: New window is not on top
Last modified: 2007-07-01 10:48:57 UTC
If I open some text file with gedit inside Nautilus or Konqueror. (propably more situations have the same problem), the new window is behind the Nautilus window i got following error: (gedit:5238): Gdk-CRITICAL **: gdk_x11_window_set_user_time: assertion `GDK_IS_W INDOW (window)' failed only happens if gedit have an other window open on other desktop steps: 1. open gedit on desktop x 2. open gedit inside nautilus on desktop !=x 3. repeat step 2 until the window is behind nautilus
Uh oh, you are right. It happens (as the warning suggest) because the window isn't realized yet since it has never been shown, so the corresponding GdkWindow has not been created yet and setting the user time fails. Not managing to set the user time means that nautilus keeps having a maore up to date interaction timestamp and thus it stays on top. Patch coming up in a minute. It's a bit of a hack (it forces a realize() before setting the timestamp) but I don't see any better way to solve it. Also the newly introduced gtk_window_present_with_time doesn't help since in the case of a window that has never been shown it simply falls back to widget_show() and doesn't set the timestamp :(
Created attachment 56016 [details] [review] patch
about every tenth time it is still below ;(
The patch looks good to me and fixes an obvious problem. Please, commit. We will investigate later why the patch does not completely fix the Jochen's problem.
does thi still happen? Can't reproduce here...
does not happen anymore thanks.
cool, thanks for letting us know.