mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
view: Read geometry directly in view_update_size
This commit is contained in:
parent
82b1019658
commit
63a6635163
4 changed files with 6 additions and 6 deletions
|
|
@ -297,7 +297,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
desktop_damage_view(view);
|
||||
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
||||
if (container_is_floating(view->container)) {
|
||||
view_update_size(view, new_geo.width, new_geo.height);
|
||||
view_update_size(view);
|
||||
transaction_commit_dirty();
|
||||
transaction_notify_view_ready_immediately(view);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
desktop_damage_view(view);
|
||||
memcpy(&view->geometry, &new_geo, sizeof(struct wlr_box));
|
||||
if (container_is_floating(view->container)) {
|
||||
view_update_size(view, new_geo.width, new_geo.height);
|
||||
view_update_size(view);
|
||||
transaction_commit_dirty();
|
||||
} else {
|
||||
view_center_surface(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue