diff options
author | Brian Mattern <rephorm@rephorm.com> | 2013-07-28 10:52:41 -0700 |
---|---|---|
committer | Brian Mattern <rephorm@rephorm.com> | 2013-07-28 21:08:03 -0700 |
commit | adf901a3374bf316b217a46e04de76e1a52a4131 (patch) | |
tree | 496c2470b56ed2df70c0b933fb4599c8c6abcd3f /src | |
parent | 7b9ad2ae7fcd075359d15ca3905a923c2c78c659 (diff) |
initialize mwmhints to 0
Diffstat (limited to 'src')
-rw-r--r-- | src/winwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index 1f4fbc0..133aa89 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -228,6 +228,7 @@ void winwidget_create_window(winwidget ret, int w, int h) KeyPressMask | KeyReleaseMask | ButtonMotionMask | ExposureMask | FocusChangeMask | PropertyChangeMask | VisibilityChangeMask; + memset(&mwmhints, 0, sizeof(mwmhints)); if (opt.borderless || ret->full_screen) { prop = XInternAtom(disp, "_MOTIF_WM_HINTS", True); if (prop == None) { @@ -240,8 +241,7 @@ void winwidget_create_window(winwidget ret, int w, int h) mwmhints.flags = MWM_HINTS_DECORATIONS; mwmhints.decorations = 0; } - } else - mwmhints.flags = 0; + } ret->win = XCreateWindow(disp, DefaultRootWindow(disp), x, y, w, h, 0, |