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
Window getting stuck in "window state: Iconic" when started alongside xmonad #422
Comments
This is a quick'n'dirty workaround for xmonad/xmonad#422. Hopefully a better answer shows up there someday.
The code after that TODO actually does what the TODO is talking about, and is referenced in the preceding loop, so I think the comment is out of date / should be removed. But if the window is marked Do you have any other windows open before you trigger this by switching to workspace 2? In particular, I would be interested to know if opening and then closing a terminal either avoids the clock or overwrites it, and in the latter case if it displays properly after closing the terminal window. |
I do not have any windows open before I trigger this. I'm also worried I didn't explain myself clearly: the issue occurs immediately on x11/xmonad startup, there isn't really anything I do to trigger it. Switching to workspace 2 is what fixes it. This is really hard to explain in words, so I've made a screen recording. This recording starts just after x11/xmonad starts up. You can see that there's an xclock window sort of floating at the top right on top of polybar, and when I start a terminal, the terminal appears on top of it, but does not fix the issue with xclock. Finally, when I switch to workspace 2, you can see the problem goes away (xclock becomes a regular old tiling window). output.mp4 |
Sorry, I understood that, I just phrased my response poorly. I wanted to know if the window had space reserved for it, which it sounds like it doesn't; nor is it floating since the terminal covers it. This suggests it isn't being managed until the workspace switch, which shouldn't happen. |
IRC discussion about this bug (just the end which is mostly a summary)
So as far as we can tell this should work. |
|
Oh, actually the |
Here are the logs with |
Hm. According to the log, the I have several moves via |
Problem Description
I have a gui application (
xclock
) configured with systemd to start up as part ofgraphical-session.target
. xmonad is configured to move this application to a specific desktop (using amanageHook
with adoShift
). In this setup,xclock
ends up in a weird situation where it's "stuck" on my screen and stays on top of everything until I switch to the desktopxclock
is on, at which point everything immediately starts behaving normally.I captured the output of
xprop
on thisxclock
application both before and after the "fix", and I saw that the only difference between the 2 applications was the window state: when broken, the window state was "Iconic", and when working, it is "Normal":If I remove the
doShift
, the problem goes away. I've tried with other applications, and can reproduce the issue, so I don't think it's application specific.Wild guess: maybe this old
TODO
about scanning for WM_STATE == Iconic is relevant?Steps to Reproduce
I am able to reproduce this with the simplified config file below + the xclock user service also below.
Unfortunately, I am not able to reproduce this in Xephyr, so perhaps there is something relevant about how I actually start xmonad (right now it's started by lightdm via some nixos generated config files that I haven't taken the time to fully understand yet).
Configuration File
xmonad.hs:
/etc/systemd/user/xclock.service:
Checklist
I've read CONTRIBUTING.md
I tested my configuration
xmonad
version 0.17.0xmonad-contrib
version 0.17.0The text was updated successfully, but these errors were encountered: