♻️ ags(logout-menu): hide window directly instead of hiding by shell cli
This commit is contained in:
@@ -16,7 +16,7 @@ export const LogoutMenu: Widget.Window = new Widget.Window({
|
|||||||
visible: false,
|
visible: false,
|
||||||
onKeyPressEvent: (_, event: Gdk.Event) => {
|
onKeyPressEvent: (_, event: Gdk.Event) => {
|
||||||
event.get_keyval()[1] === Gdk.KEY_Escape &&
|
event.get_keyval()[1] === Gdk.KEY_Escape &&
|
||||||
execAsync("astal close logout-menu")
|
_.hide();
|
||||||
},
|
},
|
||||||
child: new Widget.EventBox({
|
child: new Widget.EventBox({
|
||||||
className: "logout-menu",
|
className: "logout-menu",
|
||||||
|
|||||||
Reference in New Issue
Block a user