summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-01-05 09:20:19 -0500
committerLibravatar GitHub <noreply@github.com>2018-01-05 09:20:19 -0500
commita74d1a1992e547b9ae5baab874beb1ce743ee1c5 (patch)
tree8165d78655a1f9e90774d97c246ef16ff6a8e1a5
parentMerge pull request #1431 from 4e554c4c/sni_sucks (diff)
parentTabs got broken, fixed visibility check (diff)
downloadsway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.tar.gz
sway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.tar.zst
sway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.zip
Merge pull request #1516 from AGausmann/issue-1507
Patch #1507: Clicking on invisible title bars switches focus
-rw-r--r--sway/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index f4d447eb..d3d5913b 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -933,7 +933,8 @@ static bool swayc_border_check(swayc_t *c, const void *_origin) {
933 const struct wlc_point *origin = _origin; 933 const struct wlc_point *origin = _origin;
934 const struct wlc_geometry title_bar = c->title_bar_geometry; 934 const struct wlc_geometry title_bar = c->title_bar_geometry;
935 935
936 if (c->border_type != B_NORMAL) { 936 if (c->border_type != B_NORMAL
937 || (c->parent != NULL && !c->parent->visible)) {
937 return false; 938 return false;
938 } 939 }
939 940