1
1
mirror of https://github.com/swaywm/sway synced 2024-10-01 14:11:20 +02:00

Fix pointer related crash when stacked/tabbed

Fix #564
This commit is contained in:
Mikkel Oscar Lyderik 2016-03-31 16:39:40 +02:00
parent 60c599a5a9
commit 258e31ccdf

@ -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