about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Feng <chris.w.feng@gmail.com>2016-12-26T14·22+0800
committerChris Feng <chris.w.feng@gmail.com>2016-12-26T14·22+0800
commitb11ac2e6dc0821a5b1c6079cf24771fde3aeb4d4 (patch)
treea02937cda82842d342b96c2837c10d2c69015fcf
parent197745e6a4ca8e6fd21ee88243c6cff3563a1d02 (diff)
Fix a bug with zero floating border width
* exwm-manage.el (exwm-manage--manage-window): Avoid setting ColorMap
mask when creating an X window if floating border is zero.
-rw-r--r--exwm-manage.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/exwm-manage.el b/exwm-manage.el
index 52c324db3613..aab6199a8894 100644
--- a/exwm-manage.el
+++ b/exwm-manage.el
@@ -249,7 +249,8 @@ corresponding buffer.")
                                                  xcb:CW:BorderPixel 0)
                                              xcb:CW:OverrideRedirect
                                              xcb:CW:EventMask
-                                             xcb:CW:Colormap)
+                                             (if exwm-floating--border-colormap
+                                                 xcb:CW:Colormap 0))
                          :background-pixmap xcb:BackPixmap:ParentRelative
                          :border-pixel exwm-floating--border-pixel
                          :override-redirect 1