diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-03-31 10:51:44 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-03-31 10:51:44 -0400 |
commit | 0d4c31edcd49e1780da9f637474adeb09d3b11c7 (patch) | |
tree | cc8760b6db654c5045cfd17d6f30383e81f99fcc /sway/container.c | |
parent | Merge pull request #563 from mikkeloscar/fix-border-reset (diff) | |
parent | Fix pointer related crash when stacked/tabbed (diff) | |
download | sway-0d4c31edcd49e1780da9f637474adeb09d3b11c7.tar.gz sway-0d4c31edcd49e1780da9f637474adeb09d3b11c7.tar.zst sway-0d4c31edcd49e1780da9f637474adeb09d3b11c7.zip |
Merge pull request #565 from mikkeloscar/fix-pointer-crash
Fix pointer related crash when stacked/tabbed
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) { | |||
615 | } | 615 | } |
616 | struct wlc_point origin; | 616 | struct wlc_point origin; |
617 | wlc_pointer_get_position(&origin); | 617 | wlc_pointer_get_position(&origin); |
618 | while (lookup->type != C_VIEW) { | 618 | while (lookup && lookup->type != C_VIEW) { |
619 | int i; | 619 | int i; |
620 | int len; | 620 | int len; |
621 | // if tabbed/stacked go directly to focused container, otherwise search | 621 | // if tabbed/stacked go directly to focused container, otherwise search |