diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-31 16:39:40 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-31 16:39:42 +0200 |
commit | 258e31ccdf534aa728cf56265e7296758dfbeb3f (patch) | |
tree | cc8760b6db654c5045cfd17d6f30383e81f99fcc /sway/container.c | |
parent | 60c599a5a90ec0b43bf95305d94686f8e7473592 (diff) |
Fix pointer related crash when stacked/tabbed
Fix #564
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index 6b69d6b6..5d43b418 100644 --- a/sway/container.c +++ b/sway/container.c @@ -615,7 +615,7 @@ swayc_t *container_under_pointer(void) { } struct wlc_point origin; wlc_pointer_get_position(&origin); - while (lookup->type != C_VIEW) { + while (lookup && lookup->type != C_VIEW) { int i; int len; // if tabbed/stacked go directly to focused container, otherwise search |