summaryrefslogtreecommitdiff
path: root/src/include/window.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-22 10:56:11 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit68438829dc3050fafddcf24a059b93f345c9b5eb (patch)
tree526e67cc31b421f94703b4f7b9bee07bb2594160 /src/include/window.h
parent54b4bd0e2ab7014f5c8acc0336aa6a5a420d3c37 (diff)
downloadmarco-68438829dc3050fafddcf24a059b93f345c9b5eb.tar.bz2
marco-68438829dc3050fafddcf24a059b93f345c9b5eb.tar.xz
Only shadow ARGB windows with a frame outside the frame
An ARGB window with a frame is likely something like a transparent terminal. It looks awful (and breaks transparency) to draw a big opaque black shadow under the window, so clip out the region under the terminal from the shadow we draw. Add meta_window_get_frame_bounds() to get a cairo region for the outer bounds of the frame of a window, and modify the frame handling code to notice changes to the frame shape and discard a cached region. meta_frames_apply_shapes() is refactored so we can extract meta_frames_get_frame_bounds() from it. https://bugzilla.gnome.org/show_bug.cgi?id=635268 NOTE: Applied only partially, compositor part is still missing... upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/0f2e32d1
Diffstat (limited to 'src/include/window.h')
-rw-r--r--src/include/window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/window.h b/src/include/window.h
index 3fd0ee53..0aa208e4 100644
--- a/src/include/window.h
+++ b/src/include/window.h
@@ -23,6 +23,7 @@
#define META_WINDOW_H
#include <glib.h>
+#include <cairo.h>
#include <X11/Xlib.h>
#include "boxes.h"
@@ -37,5 +38,6 @@ MetaDisplay *meta_window_get_display (MetaWindow *window);
Window meta_window_get_xwindow (MetaWindow *window);
MetaWindow *meta_window_get_transient_for (MetaWindow *window);
gboolean meta_window_is_maximized (MetaWindow *window);
+cairo_region_t *meta_window_get_frame_bounds (MetaWindow *window);
#endif