mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
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.
This commit is contained in:
parent
a280facd5f
commit
3330faded5
6 changed files with 27 additions and 7 deletions
|
|
@ -373,7 +373,6 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) {
|
|||
struct sway_seat *seat = input_manager_get_default_seat();
|
||||
if (seat) {
|
||||
struct sway_workspace *ws = seat_get_focused_workspace(seat);
|
||||
|
||||
if (ws != NULL) {
|
||||
output = ws->output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue