GNOME Bugzilla – Bug 64396
Window position not correctly stored on exit
Last modified: 2004-12-22 21:47:04 UTC
Galeon seems to not correctly store the window position on exit. For example, the current galeon window has the following properties (shorted to the relevant information): xwininfo: Window id: 0xa00416 "Enter Bug - Galeon" Absolute upper-left X: 56 Absolute upper-left Y: 16 Relative upper-left X: 4 Relative upper-left Y: 16 Width: 910 Height: 693 ... Corners: +56+16 -58+16 -58-59 +56-59 -geometry 910x693+52+0 If I close the galeon right now it stores the upper left corner of (56,16) into the ~/.g.galeon/session_saved.xml file instead of the correct (52,0) as shown in the geometry argument. If I start galeon next time it restore its position to (56,16) instead of (52,0), shifting the window a bit to the lower right. If I repeat this step the window is shifted to the lower right with each start. It would be nice if this (probably trivial) bug could be fixed. Thanks, Torsten
There is a call to gdk_window_get_position in the line 313 of src/session.c Perhaps it should be a call to gdk_window_get_root_origin?
Dan, this is your code ?
Nope, not my code, but I'm seeing the bug too, and will fix it later today in both branches (I currently have a bunch of other unrelated changes in my source tree that I need to test more before committing).
Yup, gdk_window_get_root_origin is what was needed. It's fixed now.