summaryrefslogtreecommitdiff
path: root/openbox/screen.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-11 17:34:07 +0000
committerDana Jansens <danakj@orodu.net>2007-03-11 17:34:07 +0000
commit7229bea3c60de23a5fa4ad46bcae6171044ade81 (patch)
tree71d5aade8f35a15510fd596079e706466941c567 /openbox/screen.h
parentfe317164865f5a08e18bb0b4fa9519fa4ca48a45 (diff)
client_configure_full is trying to move a window, it shouldn't determine the window's monitor from its current position, but from the new position instead. move client_monitor()'s logic into screen, more generically, and let client_configure_full use that
Diffstat (limited to 'openbox/screen.h')
-rw-r--r--openbox/screen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/screen.h b/openbox/screen.h
index 5e9b5670..07a2cae0 100644
--- a/openbox/screen.h
+++ b/openbox/screen.h
@@ -96,6 +96,11 @@ Rect *screen_area(guint desktop);
Rect *screen_area_monitor(guint desktop, guint head);
+/*! Determines which physical monitor a rectangle is on by calculating the
+ area of the part of the rectable on each monitor. The number of the
+ monitor containing the greatest area of the rectangle is returned.*/
+guint screen_find_monitor(Rect *search);
+
/*! Sets the root cursor. This function decides which cursor to use, but you
gotta call it to let it know it should change. */
void screen_set_root_cursor();