diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-01-05 09:20:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 09:20:19 -0500 |
commit | a74d1a1992e547b9ae5baab874beb1ce743ee1c5 (patch) | |
tree | 8165d78655a1f9e90774d97c246ef16ff6a8e1a5 | |
parent | 1e87c90923eef75b7d032322dfef38def944c2bb (diff) | |
parent | 6cd66286f2520a4f1e3e67a74a8d223198d5b3d6 (diff) | |
download | sway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.zip sway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.tar.gz sway-a74d1a1992e547b9ae5baab874beb1ce743ee1c5.tar.bz2 |
Merge pull request #1516 from AGausmann/issue-1507
Patch #1507: Clicking on invisible title bars switches focus
-rw-r--r-- | sway/handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index f4d447e..d3d5913 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -933,7 +933,8 @@ 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) { + if (c->border_type != B_NORMAL + || (c->parent != NULL && !c->parent->visible)) { return false; } |