summaryrefslogtreecommitdiff
path: root/src/wayclock.cc
diff options
context:
space:
mode:
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;