mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 19:47:58 +01:00
Show moved window by default
This commit is contained in:
parent
63402b0efc
commit
42f4ec6db5
1 changed files with 13 additions and 8 deletions
|
@ -180,12 +180,15 @@ The optional FORCE option is for internal use only."
|
||||||
(concat " " (replace-regexp-in-string "^\\s-*" "" (buffer-name))))
|
(concat " " (replace-regexp-in-string "^\\s-*" "" (buffer-name))))
|
||||||
(if exwm--floating-frame
|
(if exwm--floating-frame
|
||||||
;; Move the floating frame is enough
|
;; Move the floating frame is enough
|
||||||
|
(progn
|
||||||
(xcb:+request exwm--connection
|
(xcb:+request exwm--connection
|
||||||
(make-instance 'xcb:ReparentWindow
|
(make-instance 'xcb:ReparentWindow
|
||||||
:window (frame-parameter exwm--floating-frame
|
:window (frame-parameter exwm--floating-frame
|
||||||
'exwm-outer-id)
|
'exwm-outer-id)
|
||||||
:parent (frame-parameter frame 'exwm-window-id)
|
:parent (frame-parameter frame
|
||||||
|
'exwm-window-id)
|
||||||
:x 0 :y 0))
|
:x 0 :y 0))
|
||||||
|
(xcb:flush exwm--connection))
|
||||||
;; Move the window itself
|
;; Move the window itself
|
||||||
(bury-buffer)
|
(bury-buffer)
|
||||||
(exwm-layout--hide id)
|
(exwm-layout--hide id)
|
||||||
|
@ -196,8 +199,10 @@ The optional FORCE option is for internal use only."
|
||||||
(make-instance 'xcb:ReparentWindow
|
(make-instance 'xcb:ReparentWindow
|
||||||
:window id
|
:window id
|
||||||
:parent (frame-parameter frame 'exwm-window-id)
|
:parent (frame-parameter frame 'exwm-window-id)
|
||||||
:x 0 :y 0)))))
|
:x 0 :y 0))
|
||||||
(xcb:flush exwm--connection)
|
(xcb:flush exwm--connection)
|
||||||
|
(set-window-buffer (frame-first-window frame)
|
||||||
|
(exwm--id->buffer id)))))
|
||||||
(exwm-workspace--update-switch-history)))
|
(exwm-workspace--update-switch-history)))
|
||||||
|
|
||||||
(defun exwm-workspace-rename-buffer (newname)
|
(defun exwm-workspace-rename-buffer (newname)
|
||||||
|
|
Loading…
Reference in a new issue