mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
fix crash on new output while swaylock is running
This commit is contained in:
parent
0515b37dfd
commit
7ead2e85a7
@ -838,7 +838,7 @@ void output_render(struct sway_output *output, struct timespec *when,
|
|||||||
struct sway_view *fullscreen_view = workspace->current.ws_fullscreen;
|
struct sway_view *fullscreen_view = workspace->current.ws_fullscreen;
|
||||||
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
||||||
|
|
||||||
if (output_has_opaque_lockscreen(output, seat)) {
|
if (output_has_opaque_lockscreen(output, seat) && seat->focused_layer) {
|
||||||
struct wlr_layer_surface *wlr_layer_surface = seat->focused_layer;
|
struct wlr_layer_surface *wlr_layer_surface = seat->focused_layer;
|
||||||
struct sway_layer_surface *sway_layer_surface =
|
struct sway_layer_surface *sway_layer_surface =
|
||||||
layer_from_wlr_layer_surface(seat->focused_layer);
|
layer_from_wlr_layer_surface(seat->focused_layer);
|
||||||
|
Loading…
Reference in New Issue
Block a user