diff options
author | falkTX <falktx@falktx.com> | 2022-07-15 14:34:11 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-16 08:42:21 -0400 |
commit | 9de33a73aae71cf661b7e3efafe5df1819f70274 (patch) | |
tree | 0582d71ccd7e6e409e976e7c551c79ca1604c6fd | |
parent | f34fd2a2fe637c6b7cdb086630a1f590f461cc50 (diff) | |
download | pugl-9de33a73aae71cf661b7e3efafe5df1819f70274.tar.gz pugl-9de33a73aae71cf661b7e3efafe5df1819f70274.tar.bz2 pugl-9de33a73aae71cf661b7e3efafe5df1819f70274.zip |
Fix missing field initializers when building as C++
-rw-r--r-- | src/x11.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |