Skip to content
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

In i3, error when selecting scratchpad window #45

Closed
eater opened this issue Feb 20, 2018 · 10 comments
Closed

In i3, error when selecting scratchpad window #45

eater opened this issue Feb 20, 2018 · 10 comments
Labels

Comments

@eater
Copy link
Contributor

eater commented Feb 20, 2018

When a window is on a scratchpad in i3, it appears in the Alttab list, but selecting it gives the error "Unexpected X Error: BadMatch (invalid parameter attributes)".

@sagb
Copy link
Owner

sagb commented Feb 22, 2018

Thank you for reporting!
I plan to fix this soon, together with other related issues (see #48).

sagb added a commit that referenced this issue Feb 22, 2018
@sagb
Copy link
Owner

sagb commented Feb 23, 2018

This should be fixed in c5bb567, please test.
In -d 0 (default) mode, scratchpad window should not appear in the switcher,
in -d 1 it should appear and switching to it should be possible.

@eater
Copy link
Contributor Author

eater commented Feb 23, 2018

This is working! But not perfectly.
-d 0 is great.
-d 1 shows all the windows on every desktop, and 90% of the time, it successfully switches to the window I select, on any desktop. But 10% of the time, the current window flashes, but the focus does not change. I'm not sure how to reproduce that consistently. It seems to happen when I try to switch to a window on a different desktop. Looking at the -vv log when that happens, it says it's switching window but it does NOT say it's switching desktop:

Release 5600239: 9-50
destroying our window
changing focus to 7c00074
ewmh_setFocus 7c00074
ewmh switching window to 130023540
pull out g.winlist[0] to top
destroying tiles
destroying icons and winlist
sortlist before freeWinlist: 130023540 123731973 12646413 16777219 136314883 39845942 39846772 39846866 12759826 39845945 146800643 12847568 39846923 

sagb added a commit that referenced this issue Feb 23, 2018
@sagb
Copy link
Owner

sagb commented Feb 23, 2018

Thank you for investigation, please pull and produce the sutiation again, I've added trivial verbosity in ewmh_setFocus (you can grep by "ewmh_setFocus")

@eater
Copy link
Contributor Author

eater commented Feb 23, 2018

OK:

Press 2a9: 8-23
item 2
Release 56001a0: 8-23
destroying our window
changing focus to 2600374
ewmh_setFocus win 2600374
ewmh_setFocus fwin 0 opt 1 wdesk 0 cdesk 1
ewmh switching desktop to 0
ewmh switching window to 39846772
pull out g.winlist[2] to top
destroying tiles
destroying icons and winlist
sortlist before freeWinlist: 39846772 123731973 16777219 130023540 12646413 136314883 39845942 39846866 12759826 39845945 146800643 12847568 39846923 

@sagb
Copy link
Owner

sagb commented Feb 23, 2018

There is a "switching desktop" message above. Didn't it actually switch the desktops?

@eater
Copy link
Contributor Author

eater commented Feb 23, 2018

No, it didn't.

sagb added a commit that referenced this issue Feb 24, 2018
@sagb
Copy link
Owner

sagb commented Feb 24, 2018

Please check if this temporary workaround fixes the problem.

@eater
Copy link
Contributor Author

eater commented Feb 24, 2018

Yes, that works!

sagb added a commit that referenced this issue Feb 25, 2018
@sagb
Copy link
Owner

sagb commented Feb 25, 2018

This is final resolution. Please reopen on inconsistent -d behaviour on i3 scratchpad window,
or file a new issue on inconsistent -d behaviour on other windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants