From 64d812c6d7b2e8da981a97a921981fbdb073551a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 20 May 2007 15:16:57 +0000 Subject: fix windows moving to monitors other than their own. client_find_onscreen uses their desired coordiantes instead of their old ones --- openbox/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 0dd12214..e77a4ea6 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -853,9 +853,11 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h, gint ox = *x, oy = *y; gboolean rudel = rude, ruder = rude, rudet = rude, rudeb = rude; gint fw, fh; + Rect desired; + RECT_SET(desired, *x, *y, w, h); all_a = screen_area(self->desktop); - mon_a = screen_area_monitor(self->desktop, client_monitor(self)); + mon_a = screen_area_monitor(self->desktop, screen_find_monitor(&desired)); /* get where the frame would be */ frame_client_gravity(self->frame, x, y, w, h); -- cgit v1.2.3