diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2021-12-13 19:54:46 +0100 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2021-12-13 19:54:46 +0100 |
commit | 03a34f2de89648e8b30afcce27ac17f56f12bae0 (patch) | |
tree | 966196f4dcd2f6434ef339990dec3df6e1553f32 /src/wlclock.c | |
parent | 2f606b50fb216a31df7e6717aae733970ba3e650 (diff) | |
download | wlclock-03a34f2de89648e8b30afcce27ac17f56f12bae0.tar.gz wlclock-03a34f2de89648e8b30afcce27ac17f56f12bae0.tar.bz2 |
Minor code cleanup
Diffstat (limited to '')
-rw-r--r-- | src/wlclock.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/wlclock.c b/src/wlclock.c index a5f1b54..fefc480 100644 --- a/src/wlclock.c +++ b/src/wlclock.c @@ -23,11 +23,12 @@ #include"xdg-output-unstable-v1-protocol.h" #include"xdg-shell-protocol.h" -#include"wlclock.h" +#include"colour.h" #include"misc.h" #include"output.h" +#include"render.h" #include"surface.h" -#include"colour.h" +#include"wlclock.h" struct Wlclock_context context = {0}; @@ -608,7 +609,15 @@ static void clock_run () if ( ret == 0 ) /* Timeout -> update clock hands. */ { - update_all_hands(); + clocklog(1, "[surface] Updating all hands.\n"); + struct Wlclock_output *op, *tmp; + wl_list_for_each_safe(op, tmp, &context.outputs, link) + if ( op->surface != NULL ) + { + render_hands_frame(op->surface); + wl_surface_commit(op->surface->hands_surface); + wl_surface_commit(op->surface->background_surface); + } continue; } else if ( ret < 0 ) |