On Sat, May 31, 2014 at 6:42 PM, Tycho Andersen <[email protected]> wrote:

>
> Ah, nope even that's probably not going to fix it (or rather, it'll
> fix it randomly, depending on dictionary ordering :-).
>
> Does this (untested) fix it?
>
> diff --git a/libqtile/manager.py b/libqtile/manager.py
> index 97e9264..8675074 100644
> --- a/libqtile/manager.py
> +++ b/libqtile/manager.py
> @@ -213,12 +213,16 @@ class Qtile(command.CommandObject):
>              return
>
>          xywh = {}
> +        screenpos = []
>          for s in self.conn.pseudoscreens:
>              pos = (s.x, s.y)
>              (w, h) = xywh.get(pos, (0, 0))
> -            xywh[pos] = (max(s.width, w), max(s.height, h))
> +            if pos not in xywh or s.width > w or s.height > h:
> +                xywh[pos] = (s.width, s.height)
> +                screenpos.append(pos)
>
> -        for i, ((x, y), (w, h)) in enumerate(sorted(xywh.items())):
> +        for i, (x, y) in enumerate(screenpos):
> +            (w, h) = xywh[(x, y)]
>              if i + 1 > len(self.config.screens):
>                  scr = Screen()
>              else:
>

That appears to do the trick.

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to