Skip to content

Commit 888abe2

Browse files
committed
Fix modal window behavior on X11
1 parent bfeba68 commit 888abe2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PopupWindow.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Plotinus.PopupWindow : Gtk.Window {
1818
destroy_with_parent = true;
1919
modal = true;
2020

21+
// Required for modal window behavior on X11 (see Gtk.Dialog)
22+
window_position = Gtk.WindowPosition.CENTER_ON_PARENT;
23+
type_hint = Gdk.WindowTypeHint.DIALOG;
24+
2125
// Width is determined by the width of the search entry/command list
2226
set_default_size(-1, 300);
2327
set_size_request(-1, 200);

0 commit comments

Comments
 (0)