gdk: quartz: prevent titlebar events from falling to the window below
This fixes an issue where events on the titlebar are forwarded through to the window that is directly below the titlebar, instead of being ignored. Downstream issue: https://github.com/fontforge/fontforge/issues/3980
test case:
#include <gtk/gtk.h>
int main(int argc, char* argv[])
{
gtk_init(&argc, &argv);
GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "MAIN");
gtk_widget_show(window);
GtkWidget* window2 = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window2), "SECOND");
gtk_widget_show(window2);
gtk_main();
return 0;
}
Place the SECOND
window so the close button in the titlebar is over the MAIN
window. Click the close button - the event is forwarded through to the main window, instead of closing the SECOND
window.