diff --git a/ags/window/ControlCenter.ts b/ags/window/ControlCenter.ts index 980808f..f300590 100644 --- a/ags/window/ControlCenter.ts +++ b/ags/window/ControlCenter.ts @@ -42,7 +42,7 @@ export const ControlCenter = (mon: number) => new Widget.Window({ css: `margin-top: 10px; margin-right: 10px; margin-bottom: 10px;`, - widthRequest: 400, + widthRequest: 420, onButtonPressEvent: () => true, orientation: Gtk.Orientation.VERTICAL, children: [ diff --git a/ags/window/LogoutMenu.ts b/ags/window/LogoutMenu.ts index 6a6236b..3a79564 100644 --- a/ags/window/LogoutMenu.ts +++ b/ags/window/LogoutMenu.ts @@ -2,6 +2,7 @@ import { Astal, Gdk, Gtk, Widget } from "astal/gtk3"; import { getDateTime } from "../scripts/time"; import { execAsync, GLib } from "astal"; import { AskPopup } from "../widget/AskPopup"; +import { Windows } from "../windows"; const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor; @@ -19,7 +20,7 @@ export const LogoutMenu = (mon: number) => new Widget.Window({ }, child: new Widget.EventBox({ className: "logout-menu", - onClick: () => execAsync("astal close logout-menu"), + onClick: () => Windows.close("logout-menu"), child: new Widget.Box({ expand: true, orientation: Gtk.Orientation.VERTICAL,