Skip to content

Commit

Permalink
set prop X-LightDM-DesktopName for the LightDM greeter
Browse files Browse the repository at this point in the history
  • Loading branch information
codic13 committed Jan 3, 2022
1 parent 712fb85 commit 2797f60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/worm.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/wm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2797f60

Please sign in to comment.