aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Pascal Pascher <aur@clouddrop.de>2018-07-24 23:37:41 +0200
committerLibravatar Pascal Pascher <aur@clouddrop.de>2018-07-24 23:37:41 +0200
commit2bf893248a94c7f70a9557aad4a8228731041eeb (patch)
treeec86137e1b5881151b20917f311ecce3d24fba8f /sway/input/seat.c
parentAdded meson option "enable_xwayland" (default: true) to enable/disable xwayla... (diff)
downloadsway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.gz
sway-2bf893248a94c7f70a9557aad4a8228731041eeb.tar.zst
sway-2bf893248a94c7f70a9557aad4a8228731041eeb.zip
style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 66d11eea..6b4e5f2e 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -103,13 +103,13 @@ static void seat_send_focus(struct sway_container *con,
103 103
104 if (con->type == C_VIEW 104 if (con->type == C_VIEW
105 && seat_is_input_allowed(seat, con->sway_view->surface)) { 105 && seat_is_input_allowed(seat, con->sway_view->surface)) {
106 #ifdef HAVE_XWAYLAND 106#ifdef HAVE_XWAYLAND
107 if (con->sway_view->type == SWAY_VIEW_XWAYLAND) { 107 if (con->sway_view->type == SWAY_VIEW_XWAYLAND) {
108 struct wlr_xwayland *xwayland = 108 struct wlr_xwayland *xwayland =
109 seat->input->server->xwayland.wlr_xwayland; 109 seat->input->server->xwayland.wlr_xwayland;
110 wlr_xwayland_set_seat(xwayland, seat->wlr_seat); 110 wlr_xwayland_set_seat(xwayland, seat->wlr_seat);
111 } 111 }
112 #endif 112#endif
113 struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat); 113 struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat);
114 if (keyboard) { 114 if (keyboard) {
115 wlr_seat_keyboard_notify_enter(seat->wlr_seat, 115 wlr_seat_keyboard_notify_enter(seat->wlr_seat,