diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-12 13:57:40 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-12 19:14:04 +0100 |
commit | 3330faded5ed59b19b2a1982bb52c05322b03510 (patch) | |
tree | f6acaeb4793ff21534e84ea5b9b37bf87ddf7f91 /sway/desktop/layer_shell.c | |
parent | config.in: allow launch apps with args via dmenu (diff) | |
download | sway-3330faded5ed59b19b2a1982bb52c05322b03510.tar.gz sway-3330faded5ed59b19b2a1982bb52c05322b03510.tar.zst sway-3330faded5ed59b19b2a1982bb52c05322b03510.zip |
Handle seat_get_focused_workspace returning NULL
This modifiers the callers of seat_get_focused_workspace to handle
getting NULL as the return value, if they did not already.
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index b2fea880..1667995c 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -373,7 +373,6 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { | |||
373 | struct sway_seat *seat = input_manager_get_default_seat(); | 373 | struct sway_seat *seat = input_manager_get_default_seat(); |
374 | if (seat) { | 374 | if (seat) { |
375 | struct sway_workspace *ws = seat_get_focused_workspace(seat); | 375 | struct sway_workspace *ws = seat_get_focused_workspace(seat); |
376 | |||
377 | if (ws != NULL) { | 376 | if (ws != NULL) { |
378 | output = ws->output; | 377 | output = ws->output; |
379 | } | 378 | } |