diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-12-01 18:05:37 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-12-01 18:05:37 -0500 |
| commit | e3d9ea2c8c38380ecb7a426b304641ec089e067c (patch) | |
| tree | d84e3a1b7446f1ad88e7fa896c6af8995b14e622 | |
| parent | a1969a842c9ad3088eba8d3267ac935d6a4542aa (diff) | |
Revert "Fix bug with for_window [...] move scratchpad"
This reverts commit a1969a842c9ad3088eba8d3267ac935d6a4542aa.
| -rw-r--r-- | sway/focus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/focus.c b/sway/focus.c index 0703ffb6..7af858a1 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -15,7 +15,6 @@ bool locked_view_focus = false; static void update_focus(swayc_t *c) { // Handle if focus switches swayc_t *parent = c->parent; - if (!parent) return; if (parent->focused != c) { // Get previous focus swayc_t *prev = parent->focused; @@ -88,7 +87,7 @@ swayc_t *get_focused_container(swayc_t *parent) { } bool set_focused_container(swayc_t *c) { - if (locked_container_focus || !c || !c->visible || !c->parent) { + if (locked_container_focus || !c) { return false; } swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle); |
