aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/xwayland.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index e99fe06a..2554d0e4 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -178,7 +178,10 @@ static uint32_t get_int_prop(struct sway_view *view, enum sway_view_prop prop) {
178 } 178 }
179 return 0; 179 return 0;
180 case VIEW_PROP_WINDOW_TYPE: 180 case VIEW_PROP_WINDOW_TYPE:
181 return *view->wlr_xwayland_surface->window_type; 181 if (view->wlr_xwayland_surface->window_type_len == 0) {
182 return 0;
183 }
184 return view->wlr_xwayland_surface->window_type[0];
182 default: 185 default:
183 return 0; 186 return 0;
184 } 187 }