For most use cases, replacing the "greater than" with "greater or equal than" conditions would have sufficed (after all, 0 is a perfectly reasonable coordinate for a floating window), but it's nice for you to cater for freaks that prefer their windows partially out of screen.
Thanks a bunch! 2014-09-09 15:10 GMT+02:00 Tycho Andersen <[email protected]>: > On Mon, Sep 08, 2014 at 06:46:07PM +0200, Miguel Lechón wrote: > > Yep, that was it! > > > > Thanks for replying so quickly! > > Great, I just pushed, > > > https://github.com/qtile/qtile/commit/0c7dc0b76b3bcb85689b4969dbb9489c3245417f > > \t > > > 2014-09-08 15:26 GMT+02:00 Tycho Andersen <[email protected]>: > > > > > On Mon, Sep 08, 2014 at 02:19:51AM -0700, [email protected] > wrote: > > > > Hi, I'm a happy user of qtile since the beginning of summer. > > > > > > > > I have a question regarding qtile that I hope someone among you can > > > answer. > > > > > > > > If I place a floating window partly outside of the screen (let's say > > > > top-left coordinates of the window are (-50, -50)), then move to > another > > > > group of windows and come back to the original group, the floating > window > > > > will be completely inside the screen again (top-left coordinates (0, > 0) > > > or > > > > even (10, 10), if there are other windows present in that group). I > see > > > > this behavior even in the default configuration, versions 0.7 and > 0.8. > > > > > > > > The question is: where in the code does this happen? I've done a > cursory > > > > search on qtile's code base, but I haven't be able to find the piece > of > > > > code responsible for this. > > > > > > > > Just to provide a bit of context: my goal is to reproduce an old > setup > > > > (very similar to what BadWM <http://freecode.com/projects/badwm> > > > provided) > > > > that felt quite right for me. It only uses the floating layout, so I > want > > > > to avoid something moving my windows behind the scenes. > > > > > > It looks like this happens in libqtile/widget/floating.py's to_screen, > > > which is called from libqtile/group.py's _setScreen. > > > > > > We do still use the fake screen support for testing (the reason this > > > was all added), but I think the else: condition there could probably > > > just be removed and the tests updated; it doesn't make sense as a > > > placement rule (and especially doesn't if that's what is breaking > > > things for you). > > > > > > \t > > > > > > > Thanks in advance > > > > > > > > -- > > > > 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. > > > > > > -- > > > You received this message because you are subscribed to a topic in the > > > Google Groups "qtile-dev" group. > > > To unsubscribe from this topic, visit > > > https://groups.google.com/d/topic/qtile-dev/XgtkvfZkFVI/unsubscribe. > > > To unsubscribe from this group and all its topics, send an email to > > > [email protected]. > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > -- > > 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. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "qtile-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/qtile-dev/XgtkvfZkFVI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
