Bug 548 - gtk_window_present doean't work correctly on Mac
Summary: gtk_window_present doean't work correctly on Mac
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2011-08-30 14:36 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-09-02 09:53 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mikayla Hutchinson [MSFT] 2011-08-30 14:36:27 UTC
This is a bug in the Mac GTK+ implemention of gtk_window_present. It *should*
make the window notify that it needs attention (e.g. bounce) if it doesn't
currently have focus, but on Mac it always maximizes the window.

See https://bugzilla.novell.com/show_bug.cgi?id=528068 and https://bugzilla.novell.com/show_bug.cgi?id=561726
Comment 1 Michael Natterer 2011-09-02 06:15:52 UTC
I can't reproduce this with any GTK+ app on HEAD of the upstream gtk-2-24 branch.
Comment 2 Mikayla Hutchinson [MSFT] 2011-09-02 07:04:36 UTC
Confirmed, the maximize bug seems to have been fixed upstream since we originally encountered the issue.

However, it doesn't seem to do anything except for de-iconifying the window. I think it would be reasonable to have this cause a "dock bounce" (request for attention) if the app doesn't have focus. But that's something we could do in MD's C# code if it isn't appropriate for upstream.
Comment 3 Michael Natterer 2011-09-02 07:58:11 UTC
I don't think it should do anything but showing the window. The dock
icon is not related to any window, it's related to the application. IMHO
support for that should be added to GtkApplication's quartz backend, not
to anything related to GtkWindow/GdkWindow.

I think this bug can be closed as FIXED (or whatever you use for fixed
in upstream).
Comment 4 Mikayla Hutchinson [MSFT] 2011-09-02 09:53:09 UTC
I would argue that the "request for attention" would be the mac-ish version of what gtk_window_present does on Linux. On a standard GNOME desktop, gtk_window_present causes the app to grab focus, but apps on mac aren't supposed to grab focus from other apps, so the request-for-attention would be more appropriate. But I wouldn't waste much time arguing it, since we can trivially implement it on the C# side ;-)