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

window groups on restart #960

Closed
cycomanic opened this issue Oct 6, 2016 · 3 comments
Closed

window groups on restart #960

cycomanic opened this issue Oct 6, 2016 · 3 comments

Comments

@cycomanic
Copy link

cycomanic commented Oct 6, 2016

My windows seem to be moved all over the place when I restart, none of the groups are being remembered. This is quite annoying as I'm using qtile on a laptop and move back and forth from work (plugging into external monitors ->triggering a restart). I've seen #764 and #704, but it seems some of these issues were supposed to be fixed by #765. However this does not seem the case for me, both qtile 0.10.6 and recent develop show the same issues. If someone could point me into the right direction, I can try to fix this myself.

@flacjacket
Copy link
Member

Hi @cycomanic, we had some work done to try to correctly reset the state of qtile on restarts, but it caused more problems than it solved, which is why we reverted it in #765. Fixing issues with restarts is definitely still on the to-do list, tho.

@and3rson
Copy link
Contributor

and3rson commented Nov 26, 2016

@cycomanic If you still have this issue, you can use a command that I made for myself to reparent windows to their respective group rules once they're messed up after a restart:

class FixGroups(object):
    """
    Reassigns windows to their matching groups.
    Useful once some damn window gets into a wrong group.
    """
    def __init__(self):
        pass

    def __call__(self, qtile):
        for client in qtile.windowMap.values():
            for rule in qtile.dgroups.rules:
                if rule.matches(client):
                    if rule.group and hasattr(client, 'togroup'):
                        client.togroup(rule.group)

@ramnes ramnes added this to High priority in Bug triage Nov 15, 2018
@m-col
Copy link
Member

m-col commented Dec 19, 2020

I'm pretty sure this has been fixed. If this is still an issue please comment and re-open!

@m-col m-col closed this as completed Dec 19, 2020
Bug triage automation moved this from High priority to Closed Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Bug triage
  
Closed
Development

No branches or pull requests

5 participants