[openbox] Feh Borderless - Anyone Achieved This In Openbox?

Brian Mattern rephorm at rephorm.com
Sun Jul 28 03:34:35 EDT 2013


It turns out that it is a genuine bug in feh that is triggered when gcc
optimizations are turned on. (I happened to recompile without
optimization, and thus saw the bug disappear.)

The attached patch to feh fixes the issue independent of optimization level.
Alternatively, compiling with -O1 with gcc 4.8.1 fixes the issue, but the patch is a better solution.

Brian

On Sat, 27 Jul 2013, Das wrote:

> No Arch here, hehe... :)
> 
> SLACKER <----------------------
> 
> 
> 
> On Sat, Jul 27, 2013 at 6:11 AM, Brian Mattern <rephorm at rephorm.com> wrote:
> 
> > No. Feh uses the term borderless in the fashion Das interpreted it as.
> > The issue appears to be with the offical arch package, and -x works as
> > expected if I rebuild feh using /var/abs/extra/feh/PKGBUILD. (I believe
> > that both Das and Jim use arch. Correct me if this is not the case.)
> >
> > Using "xprop _MOTIF_WM_HINTS" and then clicking on various feh windows I
> > get:
> >
> > Without -x:
> >   _MOTIF_WM_HINTS:  not found
> >
> > With -x, official package:
> >   _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x2d82a9d8, 0xf60ac4c8, 0x1
> >
> > With -x, rebuilt package :
> >   _MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x7f800358, 0x0
> >
> > From feh's source, the first number (0x2) is the "flags", which
> > indicates that the "decorations" item is set. The corresponding value is
> > the third entry, which the code sets to 0x0. I don't know why it is
> > corrupted with the official package (the 0x2d82... value).
> >
> > I've attached the PKGBUILD if you don't have and don't want to pull down
> > the full abs tree.
> >
> > I will forward the information above to the arch package maintainer.
> >
> > Brian
> >
> > On Sat, 27 Jul 2013, Jim Rees wrote:
> >
> > > I'm not sure what the "-x" option is supposed to do, but I don't think it
> > > has anything to do with window borders. The feh man page seems to use the
> > > term "border" to mean space between the photo and the edge of the window,
> > > not the window border, which surrounds the window.
> > > _______________________________________________
> > > openbox mailing list
> > > openbox at icculus.org
> > > http://icculus.org/mailman/listinfo/openbox
> >
> > _______________________________________________
> > openbox mailing list
> > openbox at icculus.org
> > http://icculus.org/mailman/listinfo/openbox
> >
> >

> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox

-------------- next part --------------
A non-text attachment was scrubbed...
Name: feh-mwmhints.patch
Type: text/x-diff
Size: 1111 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20130728/901c3e84/attachment.patch>


More information about the openbox mailing list