diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-01-11 21:13:44 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-01-11 21:13:44 -0500 |
commit | 527c259d063a4d7ca2bfd62b3b877bb70419535b (patch) | |
tree | 5dfb906f7913ed20394b564728929429218645da | |
parent | 84358788aae8472166bc01013515e09f9bc2f40c (diff) | |
download | sway-527c259d063a4d7ca2bfd62b3b877bb70419535b.tar.xz |
Fix #1008
-rw-r--r-- | sway/handlers.c | 4 |
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) { |