diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-07 00:21:39 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-07 00:21:39 +1000 |
commit | 948078122932a9782bbf1042356b62099b0cd25f (patch) | |
tree | 3de68bf62ad685cc27172bb3ec1da98edec4ed0d /sway/desktop/output.c | |
parent | Detect opaque lockscreen when using a solid color (diff) | |
download | sway-948078122932a9782bbf1042356b62099b0cd25f.tar.gz sway-948078122932a9782bbf1042356b62099b0cd25f.tar.zst sway-948078122932a9782bbf1042356b62099b0cd25f.zip |
Don't clear when using opaque lockscreen
Diffstat (limited to 'sway/desktop/output.c')
-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); |