[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm 786c2b4: Fallback to the first monitor as the prim
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm 786c2b4: Fallback to the first monitor as the primary one |
Date: |
Sun, 18 Nov 2018 01:17:01 -0500 (EST) |
branch: externals/exwm
commit 786c2b4f7d2e92f77746918b442419fa3b5794e5
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Fallback to the first monitor as the primary one
* exwm-randr.el (exwm-randr--get-monitors): When no primary monitor is
specified, pick the first one.
---
exwm-randr.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/exwm-randr.el b/exwm-randr.el
index 106ed6f..f488bd9 100644
--- a/exwm-randr.el
+++ b/exwm-randr.el
@@ -123,8 +123,9 @@ corresponding monitors whenever the monitors are active.
:width width
:height height)
monitor-plist (plist-put monitor-plist monitor-name geometry))
- ;; Save primary monitor when available.
- (when (/= 0 primary)
+ ;; Save primary monitor when available (fallback to the first one).
+ (when (or (/= 0 primary)
+ (not primary-monitor))
(setq primary-monitor monitor-name)))))
(exwm--log "Primary monitor: %s" primary-monitor)
(exwm--log "Monitors: %s" monitor-plist)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/exwm 786c2b4: Fallback to the first monitor as the primary one,
Chris Feng <=