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 556007 - GtkWindow.Fullscreen() does not work correctly with multiscreen on OSX
GtkWindow.Fullscreen() does not work correctly with multiscreen on OSX
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: Quartz
2.14.x
Other Mac OS
: Normal minor
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-12 11:43 UTC by Maarten Bosmans
Modified: 2018-04-14 23:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for 2.24.22 that fixes the issue (961 bytes, patch)
2013-11-22 11:44 UTC, Josep Torra Valles
reviewed Details | Review
Patch that fixes the issue (1.45 KB, patch)
2013-11-28 13:40 UTC, Josep Torra Valles
none Details | Review

Description Maarten Bosmans 2008-10-12 11:43:00 UTC
Please describe the problem:
The GtkWindow.Fullscreen() method does not work as expected under OSX. With a dual monitors setup, when a window on the secondary monitor is made fullscreen it pops up on the primary monitor.
This is different than the behaviour on Linux and Windows.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Josep Torra Valles 2013-11-22 11:44:21 UTC
Created attachment 261226 [details] [review]
Patch for 2.24.22 that fixes the issue

The attached patch fixes the issue in 2.24.22

Tested in a macbook running OSX Mavericks with a secondary monitor attached.
Comment 2 Matthias Clasen 2013-11-22 14:28:23 UTC
Review of attachment 261226 [details] [review]:

Looks very plausible. Please fix this in both gtk 2.24 and master
Comment 3 Josep Torra Valles 2013-11-23 09:19:32 UTC
I'm sorry but I don't have a development environment for master on OSX right now although looking to the code in master it seems that same issue is there.

Please feel free to handle the provided patch in the way that you'll consider most appropriate as I won't be able to spend time for this issue in short.
Comment 4 Josep Torra Valles 2013-11-28 13:40:26 UTC
Created attachment 263023 [details] [review]
Patch that fixes the issue

The previous provided patch wasn't completely correct as it only worked as expected when secondary screen was at right.

So here there's a new patch that works with all screen arrangements.
Comment 5 John Ralls 2014-02-24 22:05:37 UTC
Tested in Gtk2; this almost works. The only problem is that when the window is unfullscreened it goes to the origin (upper left corner of the leftmost monitor) rather than back to where it started.
Comment 6 Antoine Martin 2014-03-04 02:56:21 UTC
This patch isn't perfect, but since it is a lot better than what the current code does, are there any reasons not to merge it?
Comment 7 John Ralls 2014-03-04 03:43:05 UTC
Instead of full-screening on the wrong monitor, it restores to the wrong monitor when it coming out of full-screen. How is that any better than the current code?
Comment 8 Matthias Clasen 2018-02-10 05:12:41 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 9 Matthias Clasen 2018-04-14 23:59:07 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new