aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-07 00:21:39 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-07 00:21:39 +1000
commit948078122932a9782bbf1042356b62099b0cd25f (patch)
tree3de68bf62ad685cc27172bb3ec1da98edec4ed0d /sway/desktop
parent3b842f4eed7276f44b0a9154976ecfeef07aa867 (diff)
Don't clear when using opaque lockscreen
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/output.c9
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,
struct sway_seat *seat = input_manager_current_seat(input_manager);
if (output_has_opaque_lockscreen(output, seat)) {
- float clear_color[] = {0.0f, 0.0f, 0.0f, 1.0f};
-
- int nrects;
- pixman_box32_t *rects = pixman_region32_rectangles(damage, &nrects);
- for (int i = 0; i < nrects; ++i) {
- scissor_output(wlr_output, &rects[i]);
- wlr_renderer_clear(renderer, clear_color);
- }
-
struct wlr_layer_surface *wlr_layer_surface = seat->focused_layer;
struct sway_layer_surface *sway_layer_surface =
layer_from_wlr_layer_surface(seat->focused_layer);