mirror of
https://github.com/swaywm/sway.git
synced 2026-04-05 07:15:41 -04:00
Merge pull request #1516 from AGausmann/issue-1507
Patch #1507: Clicking on invisible title bars switches focus
This commit is contained in:
commit
a74d1a1992
1 changed files with 2 additions and 1 deletions
|
|
@ -933,7 +933,8 @@ static bool swayc_border_check(swayc_t *c, const void *_origin) {
|
||||||
const struct wlc_point *origin = _origin;
|
const struct wlc_point *origin = _origin;
|
||||||
const struct wlc_geometry title_bar = c->title_bar_geometry;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue