aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_print_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_print_events.c')
-rw-r--r--examples/pugl_print_events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c
index 9c81033..52b58c4 100644
--- a/examples/pugl_print_events.c
+++ b/examples/pugl_print_events.c
@@ -57,11 +57,12 @@ main(void)
app.view = puglNewView(app.world);
puglSetClassName(app.world, "Pugl Print Events");
+ puglSetWindowTitle(app.view, "Pugl Event Printer");
puglSetBackend(app.view, puglStubBackend());
puglSetHandle(app.view, &app);
puglSetEventFunc(app.view, onEvent);
- if (puglCreateWindow(app.view, "Pugl Event Printer")) {
+ if (puglRealize(app.view)) {
return logError("Failed to create window\n");
}