diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-10-19 19:57:01 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-10-19 19:57:01 +0200 |
commit | 0aafbbe898cfa9d95775a0efd226c3120916f878 (patch) | |
tree | 5133346d65f232de5570b8fd89b4e0e28b2acaf6 | |
parent | 5b79549eff9b0deb35d5612bdf896c283a09ec6c (diff) |
Also check if parent's Y coordinate is inside the current viewport.
-rw-r--r-- | plugins/place.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/place.c b/plugins/place.c index 48138c91..848b3be9 100644 --- a/plugins/place.c +++ b/plugins/place.c @@ -1166,8 +1166,10 @@ placeWin (CompWindow *window, y += window->input.top; /* clip to screen if parent is visible in current viewport */ - if (parent->serverX < parent->screen->width && - parent->serverX + parent->serverWidth > 0) + if (parent->serverX < parent->screen->width && + parent->serverX + parent->serverWidth > 0 && + parent->serverY < parent->screen->height &&) + parent->serverY + parent->serverHeight > 0 { XRectangle area; |