mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
Check for null container
This commit is contained in:
parent
e4fd47d3a1
commit
eb5a8e03ff
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) {
|
|||
//
|
||||
// TODO: Replace this condition with something like
|
||||
// !surface_accepts_keyboard_input
|
||||
if (surface && cont->type != C_VIEW) {
|
||||
if (surface && cont && cont->type != C_VIEW) {
|
||||
struct sway_container *new_ws = cont;
|
||||
if (new_ws && new_ws->type != C_WORKSPACE) {
|
||||
new_ws = container_parent(new_ws, C_WORKSPACE);
|
||||
|
|
Loading…
Reference in a new issue