[openbox] Feh Borderless - Anyone Achieved This In Openbox?
Jim Rees
rees at umich.edu
Sun Jul 28 08:51:01 EDT 2013
Having now looked at the source, it seems the problem is that mwmhints is
never initialized. This patch works for me:
--- winwidget.c- 2013-06-11 02:28:26.000000000 -0400
+++ winwidget.c 2013-07-28 08:47:16.892854527 -0400
@@ -228,6 +228,7 @@
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) {
@@ -235,13 +236,11 @@
("Window Manager does not support MWM hints. "
"To get a borderless window I have to bypass your wm.");
attr.override_redirect = True;
- mwmhints.flags = 0;
} else {
mwmhints.flags = MWM_HINTS_DECORATIONS;
mwmhints.decorations = 0;
}
- } else
- mwmhints.flags = 0;
+ }
ret->win =
XCreateWindow(disp, DefaultRootWindow(disp), x, y, w, h, 0,
More information about the openbox
mailing list