about summary refs log tree commit diff
path: root/exwm-core.el
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2018-03-01T16·52+0800
committerChris Feng <chris.w.feng@gmail.com>2018-03-01T16·52+0800
commitdbc06b50ff7f6cac5279b38be8f58706a0e00bb0 (patch)
treea4c9dcfe4c6509038c8ebcf7b19d43ffdc9572ca /exwm-core.el
parent98c8fd4bc5b819501e90cfe9b7e7e25de5cc35ea (diff)
Add initial support for per-application configurations
* exwm-core.el (exwm--configurations): New buffer-local variable
recording the configurations of an X window.
* exwm-manage.el (exwm-manage-configurations): New user option as the
per-application configurations.
(exwm-manage--get-configurations): New function for fetching the
configurations of this X window.
(exwm-manage--manage-window): Fetch the configurations and check if
the X window should be floating/tiling.
Diffstat (limited to 'exwm-core.el')
-rw-r--r--exwm-core.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/exwm-core.el b/exwm-core.el
index 649ef0420b53..0f48de2a109a 100644
--- a/exwm-core.el
+++ b/exwm-core.el
@@ -130,6 +130,7 @@ least SECS seconds later."
 
 ;; Internal variables
 (defvar-local exwm--id nil)               ;window ID
+(defvar-local exwm--configurations nil)   ;initial configurations.
 (defvar-local exwm--frame nil)            ;workspace frame
 (defvar-local exwm--floating-frame nil)   ;floating frame
 (defvar-local exwm--mode-line-format nil) ;save mode-line-format