diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-20 15:16:57 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-20 15:16:57 +0000 |
| commit | 64d812c6d7b2e8da981a97a921981fbdb073551a (patch) | |
| tree | 32b55ee423ef6f615ef136406280aff5bda5d15f /openbox/client.c | |
| parent | 928305d0b7ba46db3608cab8564c0cd0ec1a0724 (diff) | |
fix windows moving to monitors other than their own. client_find_onscreen uses their desired coordiantes instead of their old ones
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
