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 759990 - Saved window position not applied on realize
Saved window position not applied on realize
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.19.x
Other Windows
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-12-30 04:35 UTC by LRN
Modified: 2016-01-04 09:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LRN 2015-12-30 04:35:21 UTC
When the following is done:
> gtk_window_move()
> gtk_window_show()
the move has no effect, window is shown at 0:0

How to test: run testgtk, the "saved position" test. Move the window. Close the window. Open the "saved position" test again. Window position should be restored, but isn't.

git bisect says:

> 2438a06d54636e5074c29bd696e3e81e90288b8d is the first bad commit
> commit 2438a06d54636e5074c29bd696e3e81e90288b8d
> Author: Matthias Clasen <mclasen@redhat.com>
> Date:   Mon Dec 21 21:56:10 2015 -0500
> 
>     Revert "window: Remove suspicious branch"
> 
>     This reverts commit 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2.
> 
>     See https://bugzilla.gnome.org/show_bug.cgi?id=759705
>     for a case where this makes a difference.
>
> :040000 040000 798685267b96667809bff08e27628387e4f347f1 a26bf071ff299a50c5ecaf91d7d331c59efa2520 M      gtk

Because this is a reversion, so it could be that the bug was introduced earlier, but later was temporarily eliminated by 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2, which then got reverted.
Comment 1 LRN 2016-01-01 00:00:06 UTC
Tried to bisect it again, between a good 3.19.1 and a bad 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2

Didn't work for some reason (i ended up with a "first bad commit" that was not the first bad commit).

However, it was pretty close, i manually listed through commits up until that point and discovered that it was https://git.gnome.org/browse/gtk+/commit/?id=923ad2767ac722c7e4ec40d0f03ca01283a99b3b
Comment 2 Christoph Reiter (lazka) 2016-01-01 12:10:32 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=759705#c4
Comment 3 Christoph Reiter (lazka) 2016-01-04 09:44:00 UTC
Should be fixed now: see bug 759705