-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gnomeConfig avoidStruts doesn't work with classic gnome-panel #258
Comments
The |
I've attached it here: xmonad.hs.txt I have spent a lot of additional time on this issue: On my desktop PC the struts are avoided as expected, but on every laptop I've installed this setup on it ends up ignoring the dock and being over top. I suspect there is something about laptop displays that is causing the X window properties to be incorrect, but I don't know what else to look at. I describe my setup (and some motivation to head off "why don't you do a different setup" questions) here and workarounds necessary for Ubuntu here: https://gist.github.com/medwards/a36eda6daedaa469050057bd810d83dc |
This looks very nice! Would you perhaps be interested to contribute this to e.g. the website? We are slowly working towards replacing the wiki with an up-to-date and self-contained website instead. |
This also includes some "common problems" (and their solutions) from [1]. Related: xmonad/xmonad-contrib#258 [1]: https://gist.github.com/medwards/a36eda6daedaa469050057bd810d83dc
@slotThe just checking in: You don't have any ideas for further information I could provide to narrow the bug down? |
Are you perhaps using two monitors whenever you are observing this bug? I don't think I've ever looked into how X11 handles struts, so my knowledge there is spotty at best (@liskin and @geekosaur are much more knowledgable here), but I just installed When executed, two bars are visible on the screen and when only using a single monitor everything works fine. However, when I, say, connect a second monitor on top of the main one, the top bar will stop being respected. There is a curious change in the
The second one says that the height of the bar is zero! It is thus rightfully ignored in the
This seems to be in violation of the EWMH spec (as I understand it):
|
Oh, this looks like some new development: https://mail.gnome.org/archives/wm-spec-list/2018-December/msg00000.html, https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/22, https://muktupavels.id.lv/posts/better-multi-monitor-support-in-gnome-flashback Seems like those discussions I had on wm-spec list around 2009 went nowhere and someone implemented a different thing in 2020. :-D We might need to implement support for |
I checked with Ubuntu 16.04 in VM and |
Similar to which of the two values? The second one could have never worked because we explicitly filter out struts that have height zero. I don't exactly know how the issue in the OP relates to what this has become, perhaps @medwards is talking about something else entirely. I'm still surprised that
does indeed seem like the right value, given the height of the panel (xmobar sets
Perhaps we do (reading the commits it seems like they can do "more" than |
Both. First value looks like is without top monitor. Second is with top monitor. This has not changed in
I don't know why it was decided to set strut size to 0 in such cases. This definitely has not changed recently! It is unlikely that I will change this especially that
Providing actual values could cause regressions for someone else. |
Oh interesting. Then maybe the issue I found is not what the issue was in the original OP; thanks for clearing that up! Still I think it's worth discussing.
That sounds like an argument against fixing bugs in general :P I think that relying on incorrect (not even undefined, EMWH is quite clear what |
TLDR: multi-monitor doesn't seem to be a culprit on my setup. Strut values appear to be consistent across both working and buggy computers. All values were derived using Ubuntu 20.04 laptop - doesn't work, solo, plugged into a dock with both screens, plugged into a dock with the laptop closed:
Using laptop alone:
This is contrasted with two other computers
(working) Ubuntu 19.04 on a laptop:
|
Again, I don't know why it is set to 0. Perhaps someone decided it is better then adding workarounds in window managers... Anyway, I don't plan to spend time to find reason why it was done this way (I just don't have time for this, sorry). I will review merge request that changes this if it will contain info why it was done this way and why it is better to not do that. I don't care about old struts as GNOME Flashback supported window managers use new property. And I will revert such change if someone will report issue / regression with other window manager.
Values looks correct for top panel... Some configuration problem then (if in both cases you use 20.04, one works, other does not)? |
Correct. If this is a configuration problem but my |
This also includes some "common problems" (and their solutions) from [1]. Related: xmonad/xmonad-contrib#258 [1]: https://gist.github.com/medwards/a36eda6daedaa469050057bd810d83dc
After going from Ubuntu 16 to 18 my windows started covering up the gnome panel and status bar. I was able to fix this by configuring ManageDocks (in the attached config I changed lines are 7 and 66). This makes me think it might be related to xmonad/xmonad#79, #194, or #215 but I'm not entirely sure.
Seems like XMonad.Config.Gnome should probably be updated either way.
My current config is at https://pastebin.ca/4031349 and is based on some config I found on the xmonad wiki ages ago.
The text was updated successfully, but these errors were encountered: