Skip to content

Commit

Permalink
check if raised window is nil before using it to set window priority
Browse files Browse the repository at this point in the history
  • Loading branch information
szos committed Mar 16, 2021
1 parent 7c5a7a0 commit b7c636c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tile-window.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ than the root window's width and height."
y (frame-y head)
width (frame-width head)
height (frame-height head)
(xlib:window-priority (window-parent win)
(window-parent (group-raised-window win-group))) :above
(group-raised-window (window-group win)) win))
(group-raised-window (window-group win)) win)
(when (group-raised-window win-group)
(setf (xlib:window-priority (window-parent win)
(window-parent (group-raised-window win-group))) :above)))
(return-from geometry-hints (values x y 0 0 width height 0 t)))
;; Adjust the defaults if the window is a transient_for window.
((find (window-type win) '(:transient :dialog))
Expand Down

0 comments on commit b7c636c

Please sign in to comment.