diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-10 21:00:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 21:00:39 -0400 |
commit | 822b45f4836c9a22af5a283e2aea6e4ecd514c22 (patch) | |
tree | 8cf1710d23edfe1da01da72338197b348288922d /sway/tree/view.c | |
parent | Merge pull request #2613 from apreiml/fix_no_last_focus_fail (diff) | |
parent | Minor fix (diff) | |
download | sway-822b45f4836c9a22af5a283e2aea6e4ecd514c22.tar.gz sway-822b45f4836c9a22af5a283e2aea6e4ecd514c22.tar.zst sway-822b45f4836c9a22af5a283e2aea6e4ecd514c22.zip |
Merge pull request #2617 from wmww/cursor-enter-on-focus-change
Give windows pointer focus immediately
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 53215b40..65ac8b32 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include "sway/criteria.h" | 14 | #include "sway/criteria.h" |
15 | #include "sway/commands.h" | 15 | #include "sway/commands.h" |
16 | #include "sway/desktop/transaction.h" | 16 | #include "sway/desktop/transaction.h" |
17 | #include "sway/input/cursor.h" | ||
17 | #include "sway/ipc-server.h" | 18 | #include "sway/ipc-server.h" |
18 | #include "sway/output.h" | 19 | #include "sway/output.h" |
19 | #include "sway/input/seat.h" | 20 | #include "sway/input/seat.h" |
@@ -582,6 +583,8 @@ void view_unmap(struct sway_view *view) { | |||
582 | workspace_detect_urgent(ws); | 583 | workspace_detect_urgent(ws); |
583 | } | 584 | } |
584 | 585 | ||
586 | cursor_send_pointer_motion(config->handler_context.seat->cursor, 0, true); | ||
587 | |||
585 | transaction_commit_dirty(); | 588 | transaction_commit_dirty(); |
586 | view->surface = NULL; | 589 | view->surface = NULL; |
587 | } | 590 | } |