Skip to content
Snippets Groups Projects
Commit adf901a3 authored by Brian Mattern's avatar Brian Mattern
Browse files

initialize mwmhints to 0

parent 7b9ad2ae
No related branches found
No related tags found
No related merge requests found
...@@ -228,6 +228,7 @@ void winwidget_create_window(winwidget ret, int w, int h) ...@@ -228,6 +228,7 @@ void winwidget_create_window(winwidget ret, int w, int h)
KeyPressMask | KeyReleaseMask | ButtonMotionMask | ExposureMask KeyPressMask | KeyReleaseMask | ButtonMotionMask | ExposureMask
| FocusChangeMask | PropertyChangeMask | VisibilityChangeMask; | FocusChangeMask | PropertyChangeMask | VisibilityChangeMask;
memset(&mwmhints, 0, sizeof(mwmhints));
if (opt.borderless || ret->full_screen) { if (opt.borderless || ret->full_screen) {
prop = XInternAtom(disp, "_MOTIF_WM_HINTS", True); prop = XInternAtom(disp, "_MOTIF_WM_HINTS", True);
if (prop == None) { if (prop == None) {
...@@ -240,8 +241,7 @@ void winwidget_create_window(winwidget ret, int w, int h) ...@@ -240,8 +241,7 @@ void winwidget_create_window(winwidget ret, int w, int h)
mwmhints.flags = MWM_HINTS_DECORATIONS; mwmhints.flags = MWM_HINTS_DECORATIONS;
mwmhints.decorations = 0; mwmhints.decorations = 0;
} }
} else }
mwmhints.flags = 0;
ret->win = ret->win =
XCreateWindow(disp, DefaultRootWindow(disp), x, y, w, h, 0, XCreateWindow(disp, DefaultRootWindow(disp), x, y, w, h, 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment