added setting the wm-state property for normal clients
This commit is contained in:
parent
80ac9fd2de
commit
42a49bfd15
|
@ -118,6 +118,7 @@
|
||||||
(sync-point-wait (root-wm:finish root-wm)))
|
(sync-point-wait (root-wm:finish root-wm)))
|
||||||
|
|
||||||
(define (root-wm-manage-window root-wm window)
|
(define (root-wm-manage-window root-wm window)
|
||||||
|
(set-wm-state! (root-wm:dpy root-wm) window (wm-state normal) none)
|
||||||
(wm-manage-window (root-wm:current-manager root-wm) window))
|
(wm-manage-window (root-wm:current-manager root-wm) window))
|
||||||
|
|
||||||
(define (handle-xevent root-wm exit xevent)
|
(define (handle-xevent root-wm exit xevent)
|
||||||
|
@ -129,9 +130,7 @@
|
||||||
(configure-window dpy (configure-request-event-window xevent)
|
(configure-window dpy (configure-request-event-window xevent)
|
||||||
(configure-request-event-window-change-alist xevent)))
|
(configure-request-event-window-change-alist xevent)))
|
||||||
((map-request-event? xevent)
|
((map-request-event? xevent)
|
||||||
(wm-manage-window (root-wm:current-manager root-wm)
|
(root-wm-manage-window root-wm (map-request-event-window xevent)))
|
||||||
(map-request-event-window xevent)
|
|
||||||
#f))
|
|
||||||
((and (unmap-event? xevent) (not (unmap-event-from-configure? xevent)))
|
((and (unmap-event? xevent) (not (unmap-event-from-configure? xevent)))
|
||||||
;; syntetic unmap event for a transition to withdrawn state
|
;; syntetic unmap event for a transition to withdrawn state
|
||||||
(set-wm-state! dpy (unmap-event-window xevent)
|
(set-wm-state! dpy (unmap-event-window xevent)
|
||||||
|
|
Loading…
Reference in New Issue