summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-02 11:53:56 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-02 11:53:56 -0400
commitc507727ad240b978c6e09e3aa9238080ca9a1c81 (patch)
tree2ef131d4798845e972b3350fa816cc2ea0bca8e1 /sway
parentSend click events for i3bar blocks (diff)
downloadsway-c507727ad240b978c6e09e3aa9238080ca9a1c81.tar.gz
sway-c507727ad240b978c6e09e3aa9238080ca9a1c81.tar.zst
sway-c507727ad240b978c6e09e3aa9238080ca9a1c81.zip
Fix use-after-free with block hotspots
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index ce0682dc..e8363660 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -248,8 +248,8 @@ void arrange_windows(struct sway_container *container,
248 struct wlr_box *area = &output->sway_output->usable_area; 248 struct wlr_box *area = &output->sway_output->usable_area;
249 wlr_log(L_DEBUG, "Usable area for ws: %dx%d@%d,%d", 249 wlr_log(L_DEBUG, "Usable area for ws: %dx%d@%d,%d",
250 area->width, area->height, area->x, area->y); 250 area->width, area->height, area->x, area->y);
251 container->width = area->width; 251 container->width = width = area->width;
252 container->height = area->height; 252 container->height = height = area->height;
253 container->x = x = area->x; 253 container->x = x = area->x;
254 container->y = y = area->y; 254 container->y = y = area->y;
255 wlr_log(L_DEBUG, "Arranging workspace '%s' at %f, %f", 255 wlr_log(L_DEBUG, "Arranging workspace '%s' at %f, %f",