[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm 23f1ca740d 07/14: Selectively ignore left & right
From: |
ELPA Syncer |
Subject: |
[elpa] externals/exwm 23f1ca740d 07/14: Selectively ignore left & right struts in horizontally aligned monitors |
Date: |
Wed, 6 Sep 2023 15:57:52 -0400 (EDT) |
branch: externals/exwm
commit 23f1ca740d61d435a3bceadddecad8422a05d3fa
Author: Adrián Medraño Calvo <adrian@medranocalvo.com>
Commit: Adrián Medraño Calvo <adrian@medranocalvo.com>
Selectively ignore left & right struts in horizontally aligned monitors
* exwm-workspace.el (exwm-workspace--update-workareas): Simplify
cross-monitor strut conditionals and apply them to horizontally
aligned monitors.
---
exwm-workspace.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/exwm-workspace.el b/exwm-workspace.el
index 490d83acc5..626d29249e 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -370,6 +370,7 @@ FRAME may be either a workspace frame or a workspace
position."
(`left
(setq delta (- size x))
(when (and (< 0 delta)
+ (< delta width)
(or (not position)
(< (max beg y)
(min end (+ y height)))))
@@ -378,6 +379,7 @@ FRAME may be either a workspace frame or a workspace
position."
(`right
(setq delta (- size (- root-width x width)))
(when (and (< 0 delta)
+ (< delta width)
(or (not position)
(< (max beg y)
(min end (+ y height)))))
@@ -385,22 +387,19 @@ FRAME may be either a workspace frame or a workspace
position."
(`top
(setq delta (- size y))
(when (and (< 0 delta)
+ (< delta height)
(or (not position)
(< (max beg x)
- (min end (+ x width))))
- (< size (+ y height))
- (> size y))
+ (min end (+ x width)))))
(cl-decf height delta)
(setf y size)))
(`bottom
(setq delta (- size (- root-height y height)))
(when (and (< 0 delta)
+ (< delta height)
(or (not position)
(< (max beg x)
- (min end (+ x width))))
- (< (- root-height size)
- (+ y height))
- (> (- root-height size) y))
+ (min end (+ x width)))))
(cl-decf height delta))))))))
;; Save the result.
(setq exwm-workspace--workareas workareas)
- [elpa] externals/exwm updated (a417f0d45e -> 381637aa1c), ELPA Syncer, 2023/09/06
- [elpa] externals/exwm b100eb74c5 04/14: Merge branch 'nbarrientos.github.com/ib_exwm_conn_nil' into externals/exwm, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm 23f1ca740d 07/14: Selectively ignore left & right struts in horizontally aligned monitors,
ELPA Syncer <=
- [elpa] externals/exwm 612e64bf9b 10/14: Update copyright year to 2023, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm d340a6a563 08/14: Merge branch 'jollm.github.com/ignore-struts-top-bottom' into externals/exwm, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm c7d1fd45bc 12/14: Fix layout being refreshed too often on minibuffer setup, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm 67c5b316be 05/14: Convert `exwm-workspace--workareas' to a list of `xcb:RECTANGLE's, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm cff02333e2 01/14: Don't assume that exwm--connection is non-nil, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm 7318f857f2 02/14: Observe connection status on deinitialization, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm d8fcf18db7 09/14: Declare defsubst indentation, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm fb73aaaf8f 11/14: Convert `lsh' to `ash', ELPA Syncer, 2023/09/06
- [elpa] externals/exwm d3567a8c7f 13/14: Fix bytecompiler warnings, improve docstrings, ELPA Syncer, 2023/09/06
- [elpa] externals/exwm 381637aa1c 14/14: Declare external function, ELPA Syncer, 2023/09/06