mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -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
|
|
@ -872,10 +872,10 @@ void view_unmap(struct sway_view *view) {
|
|||
view->surface = NULL;
|
||||
}
|
||||
|
||||
void view_update_size(struct sway_view *view, int width, int height) {
|
||||
void view_update_size(struct sway_view *view) {
|
||||
struct sway_container *con = view->container;
|
||||
con->content_width = width;
|
||||
con->content_height = height;
|
||||
con->content_width = view->geometry.width;
|
||||
con->content_height = view->geometry.height;
|
||||
container_set_geometry_from_content(con);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue