summaryrefslogtreecommitdiff
path: root/src/ui/frames.h
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/frames.h
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/frames.h')
-rw-r--r--src/ui/frames.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/frames.h b/src/ui/frames.h
index ad86ee44..f4821e43 100644
--- a/src/ui/frames.h
+++ b/src/ui/frames.h
@@ -28,6 +28,7 @@
#include <gdk/gdkx.h>
#include "common.h"
#include "theme.h"
+#include "types.h"
typedef enum
{
@@ -135,11 +136,12 @@ void meta_frames_get_borders (MetaFrames *frames,
Window xwindow,
MetaFrameBorders *borders);
-void meta_frames_apply_shapes (MetaFrames *frames,
- Window xwindow,
- int new_window_width,
- int new_window_height,
- gboolean window_has_shape);
+void meta_frames_apply_shapes (MetaFrames *frames,
+ MetaDisplay *meta_display,
+ Window xwindow,
+ int new_window_width,
+ int new_window_height,
+ gboolean window_has_shape);
cairo_region_t *meta_frames_get_frame_bounds (MetaFrames *frames,
Window xwindow,
int window_width,