diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-30 18:49:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 18:49:18 -0400 |
commit | e6fa7a722e9329b1e61ff2977ae715da3c2d9c9b (patch) | |
tree | 65e272dbd50614ff343d1297aee99cb46a497d1a /sway/ipc-server.c | |
parent | 6907a2f2cf134354da9902e9154211081fb88b63 (diff) | |
parent | eb716c6c43ab3c9f265c2629538e232c4b3de625 (diff) |
Merge pull request #1669 from emersion/workspace-pointer-events
Fix pointer events for hidden workspaces
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index f1854bcc..869f1ed0 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -390,7 +390,7 @@ static void ipc_get_workspaces_callback(struct sway_container *workspace, struct sway_seat *seat = sway_input_manager_get_default_seat(input_manager); struct sway_container *focused_ws = sway_seat_get_focus(seat); - if (focused_ws->type != C_WORKSPACE) { + if (focused_ws != NULL && focused_ws->type != C_WORKSPACE) { focused_ws = container_parent(focused_ws, C_WORKSPACE); } bool focused = workspace == focused_ws; |