summaryrefslogtreecommitdiff
path: root/src/core/frame.c
diff options
context:
space:
mode:
authorMihai Moldovan <[email protected]>2023-07-28 20:24:57 +0200
committerraveit65 <[email protected]>2023-08-17 21:50:32 +0200
commitdc4a2863dd402b052edce27e441503751619b024 (patch)
tree0198eb4f600e24ce1b542962a0733762469f893f /src/core/frame.c
parent32bfada2fbbd0f6db140557addab977e4447c598 (diff)
downloadmarco-dc4a2863dd402b052edce27e441503751619b024.tar.bz2
marco-dc4a2863dd402b052edce27e441503751619b024.tar.xz
ui/frames: check that compositing is not only requested, but also available.
Enabling code that is supposed to be used in compositing conditions is harmful if compositing is not actually available. Just checking the preference is not enough to make sure that compositing is available - the X server might be missing crucial extensions for compositing to work, which in turn correctly disables the internal compositor. The end result is graphical issues like black borders around windows in such situations. Make sure that compositing is both requested AND available to fix this bug.
Diffstat (limited to 'src/core/frame.c')
-rw-r--r--src/core/frame.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/frame.c b/src/core/frame.c
index 957f6c76..e1eec2a4 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -152,6 +152,7 @@ meta_window_ensure_frame (MetaWindow *window)
/* Shape mask */
meta_ui_apply_frame_shape (frame->window->screen->ui,
+ frame->window->display,
frame->xwindow,
frame->rect.width,
frame->rect.height,
@@ -325,6 +326,7 @@ update_shape (MetaFrame *frame)
if (frame->need_reapply_frame_shape)
{
meta_ui_apply_frame_shape (frame->window->screen->ui,
+ frame->window->display,
frame->xwindow,
frame->rect.width,
frame->rect.height,