[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/exwm c7c4258 2/8: Prevent jumping back to previous work
From: |
Chris Feng |
Subject: |
[elpa] externals/exwm c7c4258 2/8: Prevent jumping back to previous workspace |
Date: |
Sun, 10 May 2020 09:38:25 -0400 (EDT) |
branch: externals/exwm
commit c7c42582b7342f20c22b8a040eab72d3ce9f37b5
Author: Adrián Medraño Calvo <address@hidden>
Commit: Adrián Medraño Calvo <address@hidden>
Prevent jumping back to previous workspace
* exwm-workspace.el (exwm-workspace-switch): Focus out old frame
before switching to the new one to prevent jumping back to
previous workspace.
---
exwm-workspace.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/exwm-workspace.el b/exwm-workspace.el
index f63a0a3..cff17f3 100644
--- a/exwm-workspace.el
+++ b/exwm-workspace.el
@@ -587,6 +587,11 @@ for internal use only."
(when (or force (not (eq frame exwm-workspace--current)))
(unless (window-live-p window)
(setq window (frame-selected-window frame)))
+ (when (and (not (eq frame old-frame))
+ (frame-live-p old-frame))
+ (with-selected-frame old-frame
+ (funcall exwm-workspace--original-handle-focus-out
+ (list 'focus-out frame))))
;; Raise this frame.
(xcb:+request exwm--connection
(make-instance 'xcb:ConfigureWindow
@@ -680,11 +685,6 @@ for internal use only."
:dst-x (/ (frame-pixel-width frame) 2)
:dst-y (/ (frame-pixel-height frame) 2)))
(xcb:flush exwm--connection))))
- (when (and (not (eq frame old-frame))
- (frame-live-p old-frame))
- (with-selected-frame old-frame
- (funcall exwm-workspace--original-handle-focus-out
- (list 'focus-out frame))))
(funcall exwm-workspace--original-handle-focus-in (list 'focus-in frame))
(run-hooks 'exwm-workspace-switch-hook)))
- [elpa] externals/exwm updated (21a7341 -> 624a302), Chris Feng, 2020/05/10
- [elpa] externals/exwm c7c4258 2/8: Prevent jumping back to previous workspace,
Chris Feng <=
- [elpa] externals/exwm ce2625d 1/8: Run hook upon input mode change, Chris Feng, 2020/05/10
- [elpa] externals/exwm c0931b5 4/8: Merge branch 'medranocalvo/input-mode-change-hook' into externals/exwm, Chris Feng, 2020/05/10
- [elpa] externals/exwm ab1d02a 5/8: Merge branch 'medranocalvo/prevent-jump-back-workspace' into externals/exwm, Chris Feng, 2020/05/10
- [elpa] externals/exwm 1d0df91 3/8: ; Upcase menu item, Chris Feng, 2020/05/10
- [elpa] externals/exwm 921b0e3 6/8: Merge branch 'medranocalvo/upcase-menu-item' into externals/exwm, Chris Feng, 2020/05/10
- [elpa] externals/exwm 7f4b9cd 7/8: Make return key work in exwm-xim, Chris Feng, 2020/05/10
- [elpa] externals/exwm 624a302 8/8: Clarify the use of `exwm-config-default', Chris Feng, 2020/05/10