aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorwillakat <willakat@users.noreply.github.com>2017-01-14 19:40:02 +0100
committerGitHub <noreply@github.com>2017-01-14 19:40:02 +0100
commit4c06a100046db6f8756e245c351eb9420a272f93 (patch)
tree51350f88fb37fea4c94c5787d0df32a3eb102ab1 /sway/handlers.c
parentdc361fd9df4a1b40fd4df0f7442944d51bca7760 (diff)
parent0001b00706bfdaa185a9fd6823ff947c14aa3b5f (diff)
downloadsway-4c06a100046db6f8756e245c351eb9420a272f93.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 3abe2fca..ad6c1c19 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -807,6 +807,10 @@ static bool swayc_border_check(swayc_t *c, const void *_origin) {
const struct wlc_point *origin = _origin;
const struct wlc_geometry title_bar = c->title_bar_geometry;
+ if (c->border_type != B_NORMAL) {
+ return false;
+ }
+
if (origin->x >= title_bar.origin.x && origin->y >= title_bar.origin.y
&& origin->x < title_bar.origin.x + (int32_t)title_bar.size.w
&& origin->y < title_bar.origin.y + (int32_t)title_bar.size.h) {