summaryrefslogtreecommitdiff
path: root/src/ui/ui.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/ui/ui.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/ui/ui.c')
-rw-r--r--src/ui/ui.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 9976c701..2b15cc82 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -458,13 +458,14 @@ meta_ui_repaint_frame (MetaUI *ui,
}
void
-meta_ui_apply_frame_shape (MetaUI *ui,
- Window xwindow,
- int new_window_width,
- int new_window_height,
- gboolean window_has_shape)
+meta_ui_apply_frame_shape (MetaUI *ui,
+ MetaDisplay *display,
+ Window xwindow,
+ int new_window_width,
+ int new_window_height,
+ gboolean window_has_shape)
{
- meta_frames_apply_shapes (ui->frames, xwindow,
+ meta_frames_apply_shapes (ui->frames, display, xwindow,
new_window_width, new_window_height,
window_has_shape);
}