diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/x11_in_gtk2.c | 1 | ||||
-rw-r--r-- | src/x11_in_gtk3.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 43e1fa1..4b9e3cf 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -193,6 +193,7 @@ forward_size_request(SuilX11Wrapper* socket, int width = allocation->width; int height = allocation->height; XSizeHints hints; + memset(&hints, 0, sizeof(hints)); XGetNormalHints(GDK_WINDOW_XDISPLAY(window), (Window)socket->instance->ui_widget, &hints); diff --git a/src/x11_in_gtk3.c b/src/x11_in_gtk3.c index c21a23f..0ff0ead 100644 --- a/src/x11_in_gtk3.c +++ b/src/x11_in_gtk3.c @@ -196,6 +196,7 @@ forward_size_request(SuilX11Wrapper* socket, int width = allocation->width; int height = allocation->height; XSizeHints hints; + memset(&hints, 0, sizeof(hints)); XGetNormalHints(GDK_WINDOW_XDISPLAY(window), (Window)socket->instance->ui_widget, &hints); |