File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ executable(
23
23
dependency (' gtk4' ),
24
24
dependency (' polkit-agent-1' ),
25
25
dependency (' polkit-gobject-1' ),
26
+ dependency (' pantheon-wayland-1' ),
26
27
meson .get_compiler(' vala' ).find_library (' posix' )
27
28
],
28
29
c_args : [
Original file line number Diff line number Diff line change 23
23
* https://github.com/solus-project/budgie-desktop
24
24
*/
25
25
26
- public class Ag.PolkitDialog : Granite .MessageDialog {
26
+ public class Ag.PolkitDialog : Granite .MessageDialog , PantheonWayland . ExtendedBehavior {
27
27
public signal void done ();
28
28
public bool was_canceled = false ;
29
29
@@ -123,6 +123,17 @@ public class Ag.PolkitDialog : Granite.MessageDialog {
123
123
124
124
update_idents ();
125
125
select_session ();
126
+
127
+ child.realize.connect (() => {
128
+ connect_to_shell ();
129
+ set_keep_above ();
130
+ make_centered ();
131
+
132
+ var surface = get_surface ();
133
+ if (surface is Gdk . Toplevel ) {
134
+ ((Gdk . Toplevel ) surface). inhibit_system_shortcuts (null );
135
+ }
136
+ });
126
137
}
127
138
128
139
private void update_idents () {
You can’t perform that action at this time.
0 commit comments