aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.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/ipc-json.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/ipc-json.c')
-rw-r--r--sway/ipc-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 110b958a..e3450df1 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -266,7 +266,7 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
266 struct wlr_box geometry = {0, 0, c->view->natural_width, c->view->natural_height}; 266 struct wlr_box geometry = {0, 0, c->view->natural_width, c->view->natural_height};
267 json_object_object_add(object, "geometry", ipc_json_create_rect(&geometry)); 267 json_object_object_add(object, "geometry", ipc_json_create_rect(&geometry));
268 268
269#ifdef HAVE_XWAYLAND 269#if HAVE_XWAYLAND
270 if (c->view->type == SWAY_VIEW_XWAYLAND) { 270 if (c->view->type == SWAY_VIEW_XWAYLAND) {
271 json_object_object_add(object, "window", 271 json_object_object_add(object, "window",
272 json_object_new_int(view_get_x11_window_id(c->view))); 272 json_object_new_int(view_get_x11_window_id(c->view)));