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 535236 - the dialog location change every time it's displayed
the dialog location change every time it's displayed
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: UI
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-05-28 11:14 UTC by Sebastien Bacher
Modified: 2008-07-02 20:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sebastien Bacher 2008-05-28 11:14:45 UTC
the bug has been described on https://bugs.launchpad.net/ubuntu/+source/deskbar-applet/+bug/220796

"In Ubuntu 7.10, clicking the deskbar icon places the search dialog wherever it was last placed, making it easy to to place it where the entire list of options can be seen. In 8.04RC the search dialog pops up in a random location and will begin to "creep" progressively lower and lower on the screen with repeated invocations."
Comment 1 Sebastian Pölsterl 2008-05-28 12:21:34 UTC
I already came across that myself.

[1] tells me that this is somehow caused by the X server that can't tell me reliably where the window actually is on the screen. Therefore, the window moves.
Unfortunately, I have no idea how to fix it.

[1]: http://www.pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow--get-position
Comment 2 Frederik Elwert 2008-07-02 17:57:49 UTC
I would see two possible solutions as pointed out in the reference you linked:

Either use GRAVITY_STATIC, or use GnomeClient. The former seems to carry its own problems, and the latter seems not to be very well documented. Also, gnome.ui is deprecated, but I don't know if there is a successor for session handling.
Comment 3 Sebastian Pölsterl 2008-07-02 20:49:17 UTC
I looked into nautilus to figure out how they do it. Turns out the fix is quite easy. The window must be moved before the window is displayed. It's now fixed in svn trunk.