diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-31 10:51:39 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-31 10:51:39 -0400 |
commit | eb5a8e03ff10d956de70f121bc70fd4cad524a9f (patch) | |
tree | 562d1caa901c3eaeef4d2b8eef40f0722f7c45de /sway | |
parent | Merge pull request #1682 from emersion/unmanaged-no-container (diff) | |
download | sway-eb5a8e03ff10d956de70f121bc70fd4cad524a9f.tar.gz sway-eb5a8e03ff10d956de70f121bc70fd4cad524a9f.tar.zst sway-eb5a8e03ff10d956de70f121bc70fd4cad524a9f.zip |
Check for null container
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index f558a37a..74af6426 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -182,7 +182,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) { | |||
182 | // | 182 | // |
183 | // TODO: Replace this condition with something like | 183 | // TODO: Replace this condition with something like |
184 | // !surface_accepts_keyboard_input | 184 | // !surface_accepts_keyboard_input |
185 | if (surface && cont->type != C_VIEW) { | 185 | if (surface && cont && cont->type != C_VIEW) { |
186 | struct sway_container *new_ws = cont; | 186 | struct sway_container *new_ws = cont; |
187 | if (new_ws && new_ws->type != C_WORKSPACE) { | 187 | if (new_ws && new_ws->type != C_WORKSPACE) { |
188 | new_ws = container_parent(new_ws, C_WORKSPACE); | 188 | new_ws = container_parent(new_ws, C_WORKSPACE); |