diff --git a/sway/layout.c b/sway/layout.c index 381e72e3d..48af3bf53 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -472,13 +472,14 @@ void view_set_floating(swayc_t *view, bool floating) { void scratchpad_push(swayc_t *view) { add_floating(scratchpad, view); wlc_view_set_mask(view->handle, 2); // invisible mask - wlc_view_send_to_back(view->handle); + wlc_view_send_to_back(view->handle); } swayc_t *scratchpad_pop(void) { if (scratchpad->floating->length == 0) { return NULL; } + swayc_t *view = scratchpad->floating->items[0]; wlc_view_set_mask(view->handle, 1); // visible mask remove_child(view);