]> git.mdlowis.com Git - proto/labwc.git/commit
view: Fix positioning of initially-maximized XWayland views
authorJohn Lindgren <john@jlindgren.net>
Wed, 16 Nov 2022 21:46:52 +0000 (16:46 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 20 Nov 2022 19:10:05 +0000 (19:10 +0000)
commit2995d0e8e06c77e51e47279f05eb328fa74b18c9
treefe76f5cb81ffc728436b35b94e6bf7ce358c9a19
parent0b6eca097ddf6b212513f9e36f5a71a200254766
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.
src/ssd/ssd.c
src/xdg.c
src/xwayland.c