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.
This commit is contained in:
parent
dc3b86d1b8
commit
786c2b4f7d
1 changed files with 3 additions and 2 deletions
|
@ -123,8 +123,9 @@ corresponding monitors whenever the monitors are active.
|
||||||
:width width
|
:width width
|
||||||
:height height)
|
:height height)
|
||||||
monitor-plist (plist-put monitor-plist monitor-name geometry))
|
monitor-plist (plist-put monitor-plist monitor-name geometry))
|
||||||
;; Save primary monitor when available.
|
;; Save primary monitor when available (fallback to the first one).
|
||||||
(when (/= 0 primary)
|
(when (or (/= 0 primary)
|
||||||
|
(not primary-monitor))
|
||||||
(setq primary-monitor monitor-name)))))
|
(setq primary-monitor monitor-name)))))
|
||||||
(exwm--log "Primary monitor: %s" primary-monitor)
|
(exwm--log "Primary monitor: %s" primary-monitor)
|
||||||
(exwm--log "Monitors: %s" monitor-plist)
|
(exwm--log "Monitors: %s" monitor-plist)
|
||||||
|
|
Loading…
Reference in a new issue