From 2797f60c2f4c918a5b073fe769d471ccb69e5125 Mon Sep 17 00:00:00 2001 From: codic Date: Sun, 2 Jan 2022 18:55:42 -0800 Subject: [PATCH] set prop X-LightDM-DesktopName for the LightDM greeter --- assets/worm.desktop | 1 + src/wm.nim | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/worm.desktop b/assets/worm.desktop index 338b461..76931f0 100644 --- a/assets/worm.desktop +++ b/assets/worm.desktop @@ -3,4 +3,5 @@ Name=Worm Comment=A floating, tag-based window manager written in Nim Exec=worm DesktopNames=Worm +X-LightDM-DesktopName=worm Type=Application diff --git a/src/wm.nim b/src/wm.nim index a84be50..9812019 100644 --- a/src/wm.nim +++ b/src/wm.nim @@ -591,10 +591,10 @@ proc maximizeClient*(self: var Wm; client: var Client): void = cint self.config.struts.left + uint x, cint self.config.struts.top + uint y) discard self.dpy.XResizeWindow(client.frame.window, cuint masterWidth, cuint(height - self.config.struts.top - - self.config.struts.bottom)) + self.config.struts.bottom - self.config.borderWidth.cuint*2)) discard self.dpy.XResizeWindow(client.window, cuint masterWidth, cuint(height - self.config.struts.top - - self.config.struts.bottom - client.frameHeight)) + self.config.struts.bottom - client.frameHeight - self.config.borderWidth.cuint*2)) for win in [client.frame.top, client.frame.title]: discard self.dpy.XResizeWindow(win, cuint masterWidth, cuint self.config.frameHeight) discard self.dpy.XSync false discard self.dpy.XFlush