Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
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
I can't reproduce this with any GTK+ app on HEAD of the upstream gtk-2-24 branch.
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.
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
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 ;-)