On 20.10.2012 12:53, Vincent Bernat wrote:
>  ❦ 20 octobre 2012 12:40 CEST, Uli Schlachter <[email protected]> :
> 
>> Could you try making the window floating and see where its corner ends up? 
>> If it
>> moves outside of the visible space, awesome considers it to be on screen 1. 
>> Just
>> because "nowhere" isn't a good answer. ;-)
>>
>> (Yes, eventually all of this should be replaced with some more complicated
>> magic. For example using the center of the window instead of its corner. Or
>> doing more math and see where most of its area is...)
> 
> I didn't try, but maybe attaching a signal to `property::screen` and
> restoring the original screen would do the trick. The question is: how
> to get the original screen?

Uhm. You don't. I guess you would need to save each client and their screen in a
lua table to be able to figure out the old one.

But with your approach, how would you move clients between screens when you
actually want to do that?

Uli
-- 
If you have to type the letters "A-E-S" into your source code, you're doing it
wrong.

-- 
To unsubscribe, send mail to [email protected].

Reply via email to