Add basic RandR support

This implementation is analogous to that in i3-wm, which requires external
tools to properly configure RandR first.
This commit is contained in:
Chris Feng 2015-08-03 20:26:53 +08:00
parent f4416a10e3
commit 86764d27a3
3 changed files with 184 additions and 28 deletions

View file

@ -125,7 +125,6 @@
;; XEmacs, though it seems nobody have ever got it working on GNU Emacs.
;; Todo:
;; + Add RandR support.
;; + Investigate DnD support (e.g. drag a chromium tab to another window).
;; + Auto hide minibuffer, or allow users to place it elsewhere.
;; + Add system tray support.
@ -145,6 +144,7 @@
(require 'exwm-floating)
(require 'exwm-manage)
(require 'exwm-input)
(require 'exwm-randr)
(defvar exwm-debug-on nil "Non-nil to turn on debug for EXWM.")
@ -618,6 +618,7 @@
(exwm-floating--init)
(exwm-manage--init)
(exwm-input--init)
(exwm-randr--init)
(exwm--unlock)
;; Disable events during new frame creation
(add-hook 'before-make-frame-hook 'exwm--lock)