mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
session-lock: remove cruft
The color to fill screen with is always black and we don't need reset its color on every session-lock destruction.
This commit is contained in:
parent
9153c22dab
commit
30694c2174
1 changed files with 0 additions and 6 deletions
|
|
@ -276,12 +276,6 @@ handle_lock_destroy(struct wl_listener *listener, void *data)
|
|||
struct session_lock_manager *manager =
|
||||
wl_container_of(listener, manager, lock_destroy);
|
||||
|
||||
float *black = (float[4]) { 0.f, 0.f, 0.f, 1.f };
|
||||
struct session_lock_output *lock_output;
|
||||
wl_list_for_each(lock_output, &manager->session_lock_outputs, link) {
|
||||
wlr_scene_rect_set_color(lock_output->background, black);
|
||||
}
|
||||
|
||||
wl_list_remove(&manager->lock_destroy.link);
|
||||
wl_list_remove(&manager->lock_unlock.link);
|
||||
wl_list_remove(&manager->lock_new_surface.link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue