xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.81k stars 261 forks source link

Window sometimes shrinks #34

Closed mathstuf closed 12 years ago

mathstuf commented 12 years ago

In a tiling window manager (XMonad here), sxiv sometimes becomes a 1x1 or 1xN window when focus is gained or lost. flipping focus around can get it to be the proper size again.

xyb3rt commented 12 years ago

Could you please answer the following questions to help me to reproduce the issue?

  1. Does this only happen in XMonad or can you reproduce this with other tiling window managers, too?
  2. Can you pastebin your (stripped-down) XMonad configuration?
  3. Are you getting this behaviour in a multi-monitor setup or with a single monitor?

Thanks for reporting and giving your feedback.

mathstuf commented 12 years ago

I know off the bat that it happens with both multi- and single monitor setups. I'll strip down my XMonad configuration tomorrow. I'll test in ratpoison as well.

mathstuf commented 12 years ago

Never got around to this and forgot about it until now. Haven't done ratpoison, but it seems to be fine with the stock XMonad configuration; I'll do more testing.

mathstuf commented 12 years ago

It seems as though the XMonad.Layout.LayoutHints module[1] causes this behavior. Setting xprop on the window shows that there isn't a size hint on the window. I'll contact XMonad upstream to see if it could be changed to ignore windows without any size hint at all.

[1]http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-LayoutHints.html

mathstuf commented 12 years ago

This has been fixed in the Haskell packages for X11 bindings.