aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 8cc64a12..75666810 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -292,7 +292,7 @@ static void xwm_set_net_client_list(struct wlr_xwm *xwm) {
xcb_window_t *windows = NULL;
if (mapped_surfaces > 0) {
- xcb_window_t *windows = malloc(sizeof(*windows) * mapped_surfaces);
+ windows = malloc(sizeof(*windows) * mapped_surfaces);
if (!windows) {
return;
}