diff options
author | Mihai Moldovan <[email protected]> | 2023-07-28 20:24:57 +0200 |
---|---|---|
committer | Colomban Wendling <[email protected]> | 2023-10-24 10:58:13 +0200 |
commit | a67e582bc96aac4a779b0fe28e7a005ca166bd03 (patch) | |
tree | d8672c01afdadca95e8f0b4bedeb939bf6c38b1a /src/include/ui.h | |
parent | a938884530839152c9854dd0d8248b36c3c2e3fd (diff) | |
download | marco-a67e582bc96aac4a779b0fe28e7a005ca166bd03.tar.bz2 marco-a67e582bc96aac4a779b0fe28e7a005ca166bd03.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/include/ui.h')
-rw-r--r-- | src/include/ui.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/ui.h b/src/include/ui.h index c02e78a2..9d95e37a 100644 --- a/src/include/ui.h +++ b/src/include/ui.h @@ -26,6 +26,7 @@ /* Don't include gtk.h or gdk.h here */ #include "common.h" +#include "types.h" #include <X11/Xlib.h> #include <X11/Xutil.h> #include <glib.h> @@ -91,11 +92,12 @@ void meta_ui_map_frame (MetaUI *ui, void meta_ui_unmap_frame (MetaUI *ui, Window xwindow); -void meta_ui_apply_frame_shape (MetaUI *ui, - Window xwindow, - int new_window_width, - int new_window_height, - gboolean window_has_shape); +void meta_ui_apply_frame_shape (MetaUI *ui, + MetaDisplay *display, + Window xwindow, + int new_window_width, + int new_window_height, + gboolean window_has_shape); cairo_region_t *meta_ui_get_frame_bounds (MetaUI *ui, Window xwindow, |