-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
To report back:
I have two monitors above each other, so I modified the function to:
function fullscreens(c)
awful.client.floating.toggle(c)
if awful.client.floating.get(c) then
local clientX = screen[1].workarea.x
local clientY = screen[1].workarea.y
local clientWidth = 2147483640
-- look at http://www.rpm.org/api/4.4.2.2/llimits_8h-source.html
local clientHeight = 0
for s = 1, screen.count() do
clientHeight = clientHeight + screen[s].workarea.height
clientWidth = math.min(clientWidth, screen[s].workarea.width)
end
local t = c:geometry({x = clientX, y = clientY, width = clientWidth,
height =
clientHeight})
else
--apply the rules to this client so he can return to the right tag
if there is a rule
for that.
awful.rules.apply(c)
end
-- focus our client
client.focus = c
end
Only problem: if the client is on the lower window and I expand it over both
screens and toggle
back, it stays on the upper monitor - but I can live with it at the moment.
Cheers,
Rainer
On 15/06/12 15:27, Rainer M Krug wrote:
> On 15/06/12 14:56, Paweł Rumian wrote:
>> 2012/6/15 Rainer M Krug <[email protected]>:
>>> Simple question: is there a way of stretching a window over two screens?
>
>> Something like this maybe? http://awesome.naquadah.org/wiki/FullScreens
>
>
>
> Exactly that - briliant.
>
> Thanks,
>
> Rainer
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk/bQJkACgkQoYgNqgF2egrHQgCfW5vz4gXr9wgi8F0F0iAb5mo+
/DwAmwRpQwg1FhDxQ5Qh5r4qRCArnhja
=eaAs
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].