diff options
author | Jiří Techet <techet@gmail.com> | 2023-08-28 08:22:24 +1000 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2023-08-28 08:22:24 +1000 |
commit | 600a06571441f54ee5595ef1bc3169795d4353fb (patch) | |
tree | 3f9afb2dae1cf027c8ab1e1c7c9f2cb079fbdaea /gtk/PlatGTK.cxx | |
parent | 5e2c44ecb87b123d0d8e8cf10c3474c8d98f02fd (diff) | |
download | scintilla-mirror-600a06571441f54ee5595ef1bc3169795d4353fb.tar.gz |
Bug [#2401]. gtk: Set type hint for GTK_WINDOW_POPUP windows
Without setting the hint the popup windows lead to some obscure behavior
on macOS when the main window is full screened, see
https://gitlab.gnome.org/GNOME/gtk/-/issues/5716
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5778
while the solution from 5778 might be a sufficient workaround, setting
the hints might be a good idea in general so the window manager knows better
the purpose of these windows.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-x | gtk/PlatGTK.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 0ff571369..b9e63c8ab 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1622,6 +1622,7 @@ void ListBoxX::Create(Window &parent, int, Point, int, bool, Technology) { #endif wid = widCached = gtk_window_new(GTK_WINDOW_POPUP); + gtk_window_set_type_hint(GTK_WINDOW(wid), GDK_WINDOW_TYPE_HINT_POPUP_MENU); frame = gtk_frame_new(nullptr); gtk_widget_show(PWidget(frame)); |