FS#33030 - [xmobar] Update to package 0.16-3 breaks xmobar struts

Attached to Project: Community Packages
Opened by Toke Høiland-Jørgensen (tohojo) - Monday, 10 December 2012, 12:25 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 24 May 2013, 18:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
The recent update to package v0.16-3 breaks xmobar strut settings. This means that the status bar is hidden behind other windows. This is running xmonad as window manager.

From version 0.16-3:

$ xprop
<click on the status bar>
_NET_WM_PID(CARDINAL) = 32496
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
WM_NAME(STRING) = "xmobar"
WM_CLASS(STRING) = "xmobar"

Downgrading to 0.16-3:
$ xprop
<click on the status bar>
_NET_WM_PID(CARDINAL) = 15111
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 14, 0, 0, 0, 0, 0, 0, 1439, 0, 0
WM_NAME(STRING) = "xmobar"
WM_CLASS(STRING) = "xmobar"

Steps to reproduce:
1. Upgrade to xmobar-0.16-3.
2. Observe that the status bar is hidden behind other windows.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 24 May 2013, 18:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 0.17
Comment by Jelle van der Waa (jelly) - Wednesday, 12 December 2012, 09:51 GMT
Seems like the _NET_WM_STRUT_PARTIAL is just a config setting since mine is:
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 14, 0, 0, 0, 0, 0, 103, 2047, 0, 0

Btw XMonad's managedocks shouldnt hide XMobar.
Comment by Toke Høiland-Jørgensen (tohojo) - Wednesday, 12 December 2012, 10:35 GMT
Well, I guess you could call it a config variable; it's a window manager hint set by the application to tell the window manager that it wants to reserve part of the screen. This is the reason xmonad doesn't hide it. See http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2732296

The reason your values are different is that you appear to be running a different resolution than I am. :)

No idea *why* it has disappeared on the newest package, I just note that it has and that downgrading the package helps.
Comment by Michal Kawalec (mkawalec) - Sunday, 23 December 2012, 15:10 GMT
There are also no struts for me:

_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Comment by jben (jben) - Tuesday, 25 December 2012, 00:44 GMT
The ``with_threaded'' flag in the compilation step seems cause this problem.
Comment by Jelle van der Waa (jelly) - Tuesday, 25 December 2012, 12:14 GMT
Did you compile it without threaded and did it work? IF that's the problem i can rebuild it to -4 and push it into the repos
Comment by Alexander Polakov (plhk) - Tuesday, 25 December 2012, 23:39 GMT
Works for me with diff attached.
Comment by Toke Høiland-Jørgensen (tohojo) - Thursday, 27 December 2012, 12:41 GMT
Alexander's patch works for me as well. I'm attaching the PKGBUILD I used to build it; it has the patch as fix-struts.patch and does not include the '0001-Update-usage-of-catch-to-catchIOError-since-catch-ha.patch' since the source seems to have been changed. The exception handling has been changed in the original source, but I'm not sure it's doing the right thing, and so just getting rid of the patch is the right thing to do.

But either way, building xmobar-0.16-4 with the attached PKGBUILD works for me.
   PKGBUILD (1.2 KiB)
Comment by Jelle van der Waa (jelly) - Wednesday, 02 January 2013, 19:13 GMT
Alexander, could you please report the issue and diff upstream so they can fix it ;)
Comment by Alexander Polakov (plhk) - Friday, 04 January 2013, 17:58 GMT

Loading...