diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-29 00:42:16 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-29 00:42:16 +0000 |
| commit | 6e06e45fb63f0d80878a5102814de4d966345a15 (patch) | |
| tree | 558e789565bbd6d804b7d6a8fe658398742daa40 | |
| parent | 39d94f0db04dc62bf44a24e152550e504cb6649d (diff) | |
fix hack for windows moving by their decor size
| -rw-r--r-- | openbox/event.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/event.c b/openbox/event.c index 0799f3b3..154b8347 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1101,13 +1101,14 @@ static void event_handle_client(ObClient *client, XEvent *e) desktop. eg. open amarok window on desktop 1, switch to desktop 2, click amarok tray icon. it will move by its decoration size. */ - if (move && !resize && - x != client->area.x && + if (x != client->area.x && x == (client->frame->area.x + client->frame->size.left - (gint)client->border_width) && y != client->area.y && y == (client->frame->area.y + client->frame->size.top - - (gint)client->border_width)) + (gint)client->border_width) && + w == client->area.width && + h == client->area.height) { ob_debug_type(OB_DEBUG_APP_BUGS, "Application %s is trying to move via " |
