diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 8c634e5f..8698d69e 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <wlr/types/wlr_output_layout.h> | 12 | #include <wlr/types/wlr_output_layout.h> |
13 | #include <wlr/types/wlr_xcursor_manager.h> | 13 | #include <wlr/types/wlr_xcursor_manager.h> |
14 | #include "log.h" | 14 | #include "log.h" |
15 | #include "config.h" | ||
15 | #include "sway/debug.h" | 16 | #include "sway/debug.h" |
16 | #include "sway/desktop.h" | 17 | #include "sway/desktop.h" |
17 | #include "sway/input/cursor.h" | 18 | #include "sway/input/cursor.h" |
@@ -103,11 +104,13 @@ static void seat_send_focus(struct sway_container *con, | |||
103 | 104 | ||
104 | if (con->type == C_VIEW | 105 | if (con->type == C_VIEW |
105 | && seat_is_input_allowed(seat, con->sway_view->surface)) { | 106 | && seat_is_input_allowed(seat, con->sway_view->surface)) { |
107 | #ifdef HAVE_XWAYLAND | ||
106 | if (con->sway_view->type == SWAY_VIEW_XWAYLAND) { | 108 | if (con->sway_view->type == SWAY_VIEW_XWAYLAND) { |
107 | struct wlr_xwayland *xwayland = | 109 | struct wlr_xwayland *xwayland = |
108 | seat->input->server->xwayland.wlr_xwayland; | 110 | seat->input->server->xwayland.wlr_xwayland; |
109 | wlr_xwayland_set_seat(xwayland, seat->wlr_seat); | 111 | wlr_xwayland_set_seat(xwayland, seat->wlr_seat); |
110 | } | 112 | } |
113 | #endif | ||
111 | struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat); | 114 | struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat); |
112 | if (keyboard) { | 115 | if (keyboard) { |
113 | wlr_seat_keyboard_notify_enter(seat->wlr_seat, | 116 | wlr_seat_keyboard_notify_enter(seat->wlr_seat, |