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 699054 - Native Window Placement fix: make windowCaptionsOnTop work again
Native Window Placement fix: make windowCaptionsOnTop work again
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-27 18:16 UTC by wepmaschda
Modified: 2013-06-08 16:48 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
Small Patch reducing gnome shell changes (5.58 KB, patch)
2013-04-27 18:17 UTC, wepmaschda
committed Details | Review
CaptionsOnTop patch (4.20 KB, patch)
2013-04-27 18:19 UTC, wepmaschda
committed Details | Review
3.9 patch (10.91 KB, patch)
2013-05-27 19:28 UTC, wepmaschda
committed Details | Review

Description wepmaschda 2013-04-27 18:16:03 UTC
On gnome shell 3.8 window captions are always placed below the windows - the windowCaptionsOnTop option has no effect.
Comment 1 wepmaschda 2013-04-27 18:17:52 UTC
Created attachment 242671 [details] [review]
Small Patch reducing gnome shell changes

This is the first part of the patch. It just makes our functions simpler by using the new gnome shell infrastructure in 3.8.
Comment 2 wepmaschda 2013-04-27 18:19:34 UTC
Created attachment 242672 [details] [review]
CaptionsOnTop patch

This is the actual patch fixing the CaptionsOnTop issue. Applied on top of the first patch.
Comment 3 Giovanni Campagna 2013-05-12 17:31:25 UTC
Review of attachment 242671 [details] [review]:

This looks good for 3.8, but I'm afraid a bigger change or a revert will be needed for 3.9, as realRecalculateWindowPositions() is more integrated into LayoutStrategy.
Comment 4 Giovanni Campagna 2013-05-12 17:32:15 UTC
Review of attachment 242672 [details] [review]:

Ok
Comment 5 wepmaschda 2013-05-24 20:24:37 UTC
(In reply to comment #3)
> Review of attachment 242671 [details] [review]:
> 
> This looks good for 3.8, but I'm afraid a bigger change or a revert will be
> needed for 3.9, as realRecalculateWindowPositions() is more integrated into
> LayoutStrategy.

Hm - didn't recognize that :-(
I won't fix this now since I don't have a working 3.9 version of the gnome-shell running for testing.

Can you merge the second patch into the 3.8 branch since the extension is quite unusable without it? ;-)
Comment 6 Giovanni Campagna 2013-05-24 20:34:15 UTC
Both patches merged to gnome-3-8.
Comment 7 wepmaschda 2013-05-24 21:12:35 UTC
Great! Thanks! I'm working on the 3.9 version now. (using this ppa: https://launchpad.net/~ricotz/+archive/testing?field.series_filter=raring)
Comment 8 wepmaschda 2013-05-27 19:28:21 UTC
Created attachment 245406 [details] [review]
3.9 patch

This is a quick fix to make it work on gnome-shell 3.9.

A better fix would be to implement our own LayoutStrategy class and benefit from the delayed _realRecalculateWindowPositions() functionality. Tried this but wasn't able to make it work reliably. Can deliver the branch if someone is interested in...
Comment 9 Giovanni Campagna 2013-06-08 16:48:05 UTC
Thank you for your patch, it's good enough that I merged it to 3.9.
If you want to continue your work and use LayoutStrategy, that's very welcome.
Otherwise, I don't think I'll commit much time to this extension...