emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm 42f4ec6 20/64: Show moved window by default


From: Chris Feng
Subject: [elpa] externals/exwm 42f4ec6 20/64: Show moved window by default
Date: Thu, 17 Sep 2015 23:17:56 +0000

branch: externals/exwm
commit 42f4ec6db50fc0d62792847e63349c46b056ad8f
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>

    Show moved window by default
---
 exwm-workspace.el |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/exwm-workspace.el b/exwm-workspace.el
index efecf57..148ff36 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -180,12 +180,15 @@ The optional FORCE option is for internal use only."
          (concat " " (replace-regexp-in-string "^\\s-*" "" (buffer-name))))
         (if exwm--floating-frame
             ;; Move the floating frame is enough
-            (xcb:+request exwm--connection
-                (make-instance 'xcb:ReparentWindow
-                               :window (frame-parameter exwm--floating-frame
-                                                        'exwm-outer-id)
-                               :parent (frame-parameter frame 'exwm-window-id)
-                               :x 0 :y 0))
+            (progn
+              (xcb:+request exwm--connection
+                  (make-instance 'xcb:ReparentWindow
+                                 :window (frame-parameter exwm--floating-frame
+                                                          'exwm-outer-id)
+                                 :parent (frame-parameter frame
+                                                          'exwm-window-id)
+                                 :x 0 :y 0))
+              (xcb:flush exwm--connection))
           ;; Move the window itself
           (bury-buffer)
           (exwm-layout--hide id)
@@ -196,8 +199,10 @@ The optional FORCE option is for internal use only."
               (make-instance 'xcb:ReparentWindow
                              :window id
                              :parent (frame-parameter frame 'exwm-window-id)
-                             :x 0 :y 0)))))
-    (xcb:flush exwm--connection)
+                             :x 0 :y 0))
+          (xcb:flush exwm--connection)
+          (set-window-buffer (frame-first-window frame)
+                             (exwm--id->buffer id)))))
     (exwm-workspace--update-switch-history)))
 
 (defun exwm-workspace-rename-buffer (newname)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]