diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index 7217e1369..e730d0090 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c @@ -321,7 +321,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { // containers, we resize the container to match. For tiling containers, // we only recenter the surface. memcpy(&view->geometry, new_geo, sizeof(struct wlr_box)); - if (container_is_floating(view->container)) { + if (container_is_floating(view->container) && !container_is_scratchpad_hidden(view->container)) { view_update_size(view); // Only set the toplevel size the current container actually has a size. if (view->container->current.width) {