aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-26 11:22:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-26 11:22:16 +0000
commitea97a0dc87f7d8f070de747f0e3adc35780c6cca (patch)
tree77d893d6c011cb0d7211efe84798514be6c4cb8e /render.c
parentrender: resize: ignore unconfigured windows (diff)
wayland: instantiate sub-surfaces on-demand
While most compositors handle instantiated but not-yet-mapped sub-surfaces correctly, e.g. kwin does not. For example, it will incorrectly offset the main surface both horizontally and vertically with a couple of pixels, leaving two transparent areas at the top and left, between the SSDs and the main surface. Note that a workaround is to position the sub-surfaces inside the main surface while they're unmapped. However, since the surfaces may be larger than the main surface (the CSDs, for examples, always are), this doesn't quite work since kwin, at least, resizes the window to include the sub-surfaces, even when unmapped. So, instead we instantiate all sub-surfaces on demand, when we know where to position them, and when they should be mapped.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions