path: root/src/include
diff options
authorThomas James Alexander Thurman <>2008-11-17 02:57:20 +0000
committerThomas James Alexander Thurman <>2008-11-17 02:57:20 +0000
commita06d96316e046e5298a54b8eff13081560ca0cda (patch)
tree62986a55b2550421fc9074c545563551d6746ec5 /src/include
parent6e8c233d6a5f7232186c225748e4620af784f948 (diff)
This change adds support for the new _NET_WM_FULLSCREEN_MONITORS
property and client message. This allows client applications to request that a fullscreen window cover more than one monitor. * src/include/boxes.h: * src/core/boxes.c: Add meta_rectangle_union * src/core/window-private.h: * src/core/window.c: (meta_window_new_with_attrs, meta_window_free, set_net_wm_state, meta_window_update_fullscreen_monitors, meta_window_client_message): Add MetaWindow property to store fullscreen monitors field, update _NET_WM_FULLSCREEN_MONITORS property on windows, and handle client message. * src/core/atomnames.h: Add _NET_WM_FULLSCREEN_MONITORS atom. * src/core/constraints.c (setup_constraint_info): If _NET_WM_FULLSCREEN_MONITORS is interesting, use the data stored in MetaWindow::fullscreen_monitors to determine the fullscreen area instead of the basic xinerama_info area. svn path=/trunk/; revision=4021
Diffstat (limited to 'src/include')
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/boxes.h b/src/include/boxes.h
index 145dbb0..54b94ea9 100644
--- a/src/include/boxes.h
+++ b/src/include/boxes.h
@@ -103,6 +103,11 @@ gboolean meta_rectangle_intersect (const MetaRectangle *src1,
gboolean meta_rectangle_equal (const MetaRectangle *src1,
const MetaRectangle *src2);
+/* Find the bounding box of the union of two rectangles */
+void meta_rectangle_union (const MetaRectangle *rect1,
+ const MetaRectangle *rect2,
+ MetaRectangle *dest);
/* overlap is similar to intersect but doesn't provide location of
* intersection information.