summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-24 16:40:31 -0400
committerMikael Magnusson <mikachu@comhem.se>2007-07-26 10:48:05 +0200
commit92f80b2557b36875b8d173ba3d1c782772b601d7 (patch)
tree47625ead10843f211c70883298d08e1a6718f555 /openbox
parent9aed91955448787ba8b6cfb92823362abb704e28 (diff)
use the moveresize client to find the active monitor too
Diffstat (limited to 'openbox')
-rw-r--r--openbox/screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 9bbd13d1..330cb0a2 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -1555,7 +1555,9 @@ Rect* screen_physical_area_active()
Rect *a;
gint x, y;
- if (focus_client)
+ if (moveresize_client)
+ a = screen_physical_area_monitor(client_monitor(focus_client));
+ else if (focus_client)
a = screen_physical_area_monitor(client_monitor(focus_client));
else {
Rect mon;