mirror of
https://github.com/swaywm/sway.git
synced 2026-02-20 01:40:41 -05:00
xdg-shell: dont overwrite for_window scratchpad geometry
this handle_commit causes containers in the scratchpad to have their `for_window` resize geometry get reset by natural geometry. A for_window ... resize directive's call to schedule ends up overwritten by this commit with natural geometry values.
This commit is contained in:
parent
b081eba05d
commit
df130bede0
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue