summaryrefslogtreecommitdiff
path: root/src/wayclock.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-10 12:48:09 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-10 12:48:09 +0100
commitb9d3576c1402c530aef200e8832f13eecda5070d (patch)
treef81e6d72950404412b8a4b005757b329e716fe3d /src/wayclock.cc
parent16bedd8b739808193b527f173c0ae2053926b736 (diff)
adjust naming
Diffstat (limited to 'src/wayclock.cc')
-rw-r--r--src/wayclock.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc
index 17d7123..ef3e712 100644
--- a/src/wayclock.cc
+++ b/src/wayclock.cc
@@ -22,10 +22,10 @@ void handle(struct eventloop_s *loop, struct event_s *event) {
case EVENT_KIND_CLOSE:
wayc_eventloop_unregister(loop, window->id);
break;
- case EVENT_KIND_RESIZE:
- fprintf(stderr, "Window resized: %d x %d\n", data.resize.width,
- data.resize.height);
- break;
+ case EVENT_KIND_RESIZE: {
+ struct event_resize_s resize = data.resize;
+ fprintf(stderr, "Window resized: %d x %d\n", resize.width, resize.height);
+ } break;
case EVENT_KIND_FRAME:
frame(window, loop);
break;