mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Fix segfault from focus_view
This commit is contained in:
parent
107f961752
commit
9835845e22
1 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,9 @@ void unfocus_all(swayc_t *container) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void focus_view(swayc_t *view) {
|
void focus_view(swayc_t *view) {
|
||||||
|
if (!view) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
sway_log(L_DEBUG, "Setting focus for %p:%ld", view, view->handle);
|
sway_log(L_DEBUG, "Setting focus for %p:%ld", view, view->handle);
|
||||||
swayc_t *c = view;
|
swayc_t *c = view;
|
||||||
//Set focus from root to view
|
//Set focus from root to view
|
||||||
|
|
Loading…
Reference in a new issue