diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-18 08:22:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 08:22:25 -0500 |
commit | b87250425fe13149e41b346f15c5cf808f376438 (patch) | |
tree | 145fcb048cc3df3d04a8b6afb90de68dd2dd80a9 /sway/input | |
parent | eda3bfeed5097c71634332bfe998188b028abf02 (diff) | |
parent | cad851805bea6b4777685df1c6adf8cb9fa71835 (diff) |
Merge pull request #3147 from emersion/set10
Use #if instead of #ifdef
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 2 | ||||
-rw-r--r-- | sway/input/seat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index c81e9ab1..c6b7414c 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -63,7 +63,7 @@ static struct sway_node *node_at_coords( struct sway_seat *seat, double lx, double ly, struct wlr_surface **surface, double *sx, double *sy) { // check for unmanaged views first -#ifdef HAVE_XWAYLAND +#if HAVE_XWAYLAND struct wl_list *unmanaged = &root->xwayland_unmanaged; struct sway_xwayland_unmanaged *unmanaged_surface; wl_list_for_each_reverse(unmanaged_surface, unmanaged, link) { diff --git a/sway/input/seat.c b/sway/input/seat.c index 54fdf40b..663c5140 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -92,7 +92,7 @@ static void seat_send_focus(struct sway_node *node, struct sway_seat *seat) { node->sway_container->view : NULL; if (view && seat_is_input_allowed(seat, view->surface)) { -#ifdef HAVE_XWAYLAND +#if HAVE_XWAYLAND if (view->type == SWAY_VIEW_XWAYLAND) { struct wlr_xwayland *xwayland = server.xwayland.wlr_xwayland; wlr_xwayland_set_seat(xwayland, seat->wlr_seat); |