mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: Fix positioning of initially-maximized XWayland views
map() in xwayland.c called ssd_create() but did not call view_apply_maximized_geometry() afterward, resulting in the decorations being displayed off-screen. Rather than calling view_apply_maximized_geometry() in more places, let's reuse the existing call in view_set_decorations(), and extend ssd_update_geometry() to call ssd_create() when needed.
This commit is contained in:
parent
0b6eca097d
commit
2995d0e8e0
3 changed files with 6 additions and 11 deletions
|
|
@ -389,10 +389,7 @@ map(struct view *view)
|
|||
}
|
||||
|
||||
if (!view->been_mapped) {
|
||||
view->ssd.enabled = want_deco(view);
|
||||
if (view->ssd.enabled) {
|
||||
ssd_create(view);
|
||||
}
|
||||
view_set_decorations(view, want_deco(view));
|
||||
|
||||
if (!view->maximized && !view->fullscreen) {
|
||||
set_initial_position(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue