aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2022-07-15 14:34:11 +0100
committerDavid Robillard <d@drobilla.net>2022-07-16 08:42:21 -0400
commit9de33a73aae71cf661b7e3efafe5df1819f70274 (patch)
tree0582d71ccd7e6e409e976e7c551c79ca1604c6fd
parentf34fd2a2fe637c6b7cdb086630a1f590f461cc50 (diff)
downloadpugl-9de33a73aae71cf661b7e3efafe5df1819f70274.tar.gz
pugl-9de33a73aae71cf661b7e3efafe5df1819f70274.tar.bz2
pugl-9de33a73aae71cf661b7e3efafe5df1819f70274.zip
Fix missing field initializers when building as C++
-rw-r--r--src/x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/x11.c b/src/x11.c
index a6ebf95..4e68674 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -949,7 +949,7 @@ puglGrabFocus(PuglView* const view)
{
PuglInternals* const impl = view->impl;
Display* const display = view->world->impl->display;
- XWindowAttributes attrs = {0};
+ XWindowAttributes attrs = PUGL_INIT_STRUCT;
if (!impl->win || !XGetWindowAttributes(display, impl->win, &attrs)) {
return PUGL_UNKNOWN_ERROR;
@@ -978,7 +978,7 @@ puglRequestAttention(PuglView* const view)
PuglInternals* const impl = view->impl;
Display* const display = view->world->impl->display;
const PuglX11Atoms* const atoms = &view->world->impl->atoms;
- XEvent event = {0};
+ XEvent event = PUGL_INIT_STRUCT;
event.type = ClientMessage;
event.xclient.window = impl->win;
@@ -1079,7 +1079,7 @@ puglStopTimer(PuglView* const view, const uintptr_t id)
static XEvent
eventToX(PuglView* const view, const PuglEvent* const event)
{
- XEvent xev = {0};
+ XEvent xev = PUGL_INIT_STRUCT;
xev.xany.send_event = True;
switch (event->type) {