aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-11-18 00:33:06 +0100
committerLibravatar emersion <contact@emersion.fr>2018-11-18 00:33:06 +0100
commitcad851805bea6b4777685df1c6adf8cb9fa71835 (patch)
tree145fcb048cc3df3d04a8b6afb90de68dd2dd80a9 /sway/commands/swap.c
parentMerge pull request #3142 from RyanDwyer/move-view-properties (diff)
downloadsway-cad851805bea6b4777685df1c6adf8cb9fa71835.tar.gz
sway-cad851805bea6b4777685df1c6adf8cb9fa71835.tar.zst
sway-cad851805bea6b4777685df1c6adf8cb9fa71835.zip
Use #if instead of #ifdef
Diffstat (limited to 'sway/commands/swap.c')
-rw-r--r--sway/commands/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index de3f5c18..08860264 100644
--- a/sway/commands/swap.c
+++ b/sway/commands/swap.c
@@ -149,7 +149,7 @@ static bool test_con_id(struct sway_container *container, void *data) {
149 return container->node.id == *con_id; 149 return container->node.id == *con_id;
150} 150}
151 151
152#ifdef HAVE_XWAYLAND 152#if HAVE_XWAYLAND
153static bool test_id(struct sway_container *container, void *data) { 153static bool test_id(struct sway_container *container, void *data) {
154 xcb_window_t *wid = data; 154 xcb_window_t *wid = data;
155 return (container->view && container->view->type == SWAY_VIEW_XWAYLAND 155 return (container->view && container->view->type == SWAY_VIEW_XWAYLAND
@@ -184,7 +184,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
184 184
185 char *value = join_args(argv + 3, argc - 3); 185 char *value = join_args(argv + 3, argc - 3);
186 if (strcasecmp(argv[2], "id") == 0) { 186 if (strcasecmp(argv[2], "id") == 0) {
187#ifdef HAVE_XWAYLAND 187#if HAVE_XWAYLAND
188 xcb_window_t id = strtol(value, NULL, 0); 188 xcb_window_t id = strtol(value, NULL, 0);
189 other = root_find_container(test_id, &id); 189 other = root_find_container(test_id, &id);
190#endif 190#endif