[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm badf1c3 6/7: Raise all docks/panels when switching
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm badf1c3 6/7: Raise all docks/panels when switching workspace |
Date: |
Fri, 12 Aug 2016 14:38:51 +0000 (UTC) |
branch: externals/exwm
commit badf1c30a04cdc008f189c1cdef93c3db7ee7b6d
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Raise all docks/panels when switching workspace
* exwm.el (exwm--update-struts-legacy, exwm--update-struts-partial):
Always set the struts value, even it's nil.
* exwm-workspace.el (exwm-workspace--update-struts): Check for nil
struts values.
---
exwm-workspace.el | 25 +++++++++++++------------
exwm.el | 20 ++++++--------------
2 files changed, 19 insertions(+), 26 deletions(-)
diff --git a/exwm-workspace.el b/exwm-workspace.el
index befa8e0..0e078b7 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -232,18 +232,19 @@ Value nil means to use the default position which is
fixed at bottom, while
(let (struts struts*)
(dolist (pair exwm-workspace--id-struts-alist)
(setq struts (cdr pair))
- (dotimes (i 4)
- (when (/= 0 (aref struts i))
- (setq struts*
- (vector (aref [left right top bottom] i)
- (aref struts i)
- (when (= 12 (length struts))
- (substring struts (+ 4 (* i 2)) (+ 6 (* i 2))))))
- (if (= 0 (mod i 2))
- ;; Make left/top processed first.
- (push struts* exwm-workspace--struts)
- (setq exwm-workspace--struts
- (append exwm-workspace--struts (list struts*)))))))))
+ (when struts
+ (dotimes (i 4)
+ (when (/= 0 (aref struts i))
+ (setq struts*
+ (vector (aref [left right top bottom] i)
+ (aref struts i)
+ (when (= 12 (length struts))
+ (substring struts (+ 4 (* i 2)) (+ 6 (* i 2))))))
+ (if (= 0 (mod i 2))
+ ;; Make left/top processed first.
+ (push struts* exwm-workspace--struts)
+ (setq exwm-workspace--struts
+ (append exwm-workspace--struts (list struts*))))))))))
(defvar exwm-workspace--workareas nil "Workareas (struts excluded).")
diff --git a/exwm.el b/exwm.el
index 0544308..6737443 100644
--- a/exwm.el
+++ b/exwm.el
@@ -268,13 +268,9 @@
:window id)))
(when reply
(setq struts (slot-value reply 'value))
- (if struts
- (if pair
- (setcdr pair struts)
- (push (cons id struts) exwm-workspace--id-struts-alist))
- (when pair
- (setq exwm-workspace--id-struts-alist
- (assq-delete-all id exwm-workspace--id-struts-alist))))
+ (if pair
+ (setcdr pair struts)
+ (push (cons id struts) exwm-workspace--id-struts-alist))
(exwm-workspace--update-struts))
;; Update workareas and set _NET_WORKAREA.
(exwm-workspace--update-workareas)
@@ -291,13 +287,9 @@
(when reply
(setq struts (slot-value reply 'value)
pair (assq id exwm-workspace--id-struts-alist))
- (if struts
- (if pair
- (setcdr pair struts)
- (push (cons id struts) exwm-workspace--id-struts-alist))
- (when pair
- (setq exwm-workspace--id-struts-alist
- (assq-delete-all id exwm-workspace--id-struts-alist))))
+ (if pair
+ (setcdr pair struts)
+ (push (cons id struts) exwm-workspace--id-struts-alist))
(exwm-workspace--update-struts))
;; Update workareas and set _NET_WORKAREA.
(exwm-workspace--update-workareas)
- [elpa] externals/exwm updated (8e3fc36 -> 108b394), Chris Feng, 2016/08/12
- [elpa] externals/exwm 6bd85db 2/7: * exwm-manage.el (exwm-manage--scan): Check for possibly, Chris Feng, 2016/08/12
- [elpa] externals/exwm e4ecd79 4/7: * exwm-manage.el (exwm-manage--unmanage-window): Do not clear struts, Chris Feng, 2016/08/12
- [elpa] externals/exwm 8a438c2 3/7: Always put the desktop at bottom, Chris Feng, 2016/08/12
- [elpa] externals/exwm db5128c 1/7: Fix CreateWindow attributes, Chris Feng, 2016/08/12
- [elpa] externals/exwm 108b394 7/7: Fix _NET_DESKTOP_VIEWPORT, Chris Feng, 2016/08/12
- [elpa] externals/exwm badf1c3 6/7: Raise all docks/panels when switching workspace,
Chris Feng <=
- [elpa] externals/exwm ebcc959 5/7: Check for _NET_WM_STATE_FULLSCREEN on managing, Chris Feng, 2016/08/12