diff options
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 329632b6..3c34040b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -978,15 +978,6 @@ static void render_output(struct sway_output *output, struct timespec *when, | |||
978 | struct sway_seat *seat = input_manager_current_seat(input_manager); | 978 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
979 | 979 | ||
980 | if (output_has_opaque_lockscreen(output, seat)) { | 980 | if (output_has_opaque_lockscreen(output, seat)) { |
981 | float clear_color[] = {0.0f, 0.0f, 0.0f, 1.0f}; | ||
982 | |||
983 | int nrects; | ||
984 | pixman_box32_t *rects = pixman_region32_rectangles(damage, &nrects); | ||
985 | for (int i = 0; i < nrects; ++i) { | ||
986 | scissor_output(wlr_output, &rects[i]); | ||
987 | wlr_renderer_clear(renderer, clear_color); | ||
988 | } | ||
989 | |||
990 | struct wlr_layer_surface *wlr_layer_surface = seat->focused_layer; | 981 | struct wlr_layer_surface *wlr_layer_surface = seat->focused_layer; |
991 | struct sway_layer_surface *sway_layer_surface = | 982 | struct sway_layer_surface *sway_layer_surface = |
992 | layer_from_wlr_layer_surface(seat->focused_layer); | 983 | layer_from_wlr_layer_surface(seat->focused_layer); |