diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-01-05 09:20:19 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-01-05 09:20:19 -0500 |
| commit | 53cc03138eceb665a362e02a27f6b33d99dbd571 (patch) | |
| tree | 8165d78655a1f9e90774d97c246ef16ff6a8e1a5 | |
| parent | 666594b2efa7174e832cdbe56e6ab1c6970501cc (diff) | |
| parent | 6eecf2f0de6e6f41db7b76cbe6cef513808192c9 (diff) | |
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 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) { 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; } |
