exposay: make inner border dependent of exposay's surfaces size
authorLeandro Ribeiro <leandrohr@riseup.net>
Fri, 24 Jan 2020 21:10:59 +0000 (18:10 -0300)
committerDaniel Stone <daniels@collabora.com>
Wed, 26 Aug 2020 14:10:50 +0000 (14:10 +0000)
commit33e29d88cc109555ee8286ae06b1580ef0f42c92
tree884d0d2b7b0e6b382615d0f8fa9045b681f04635
parentb68454e893d4ffbe7a0789983e787a4f31eeaeef
exposay: make inner border dependent of exposay's surfaces size

We've been using an inner border of fixed size (80px), but this
is dangerous. If you have too many open applications or a small
window, the surface size computed will be negative, crashing
the exposay: "error: weston_view transformation not invertible".

Also, it creates a lot of unnecessary space, making the exposay
unusable when we have a small window or many applications open.

Make inner border to be 10% of surface size and surface size to
be 90% of its original size, avoiding the crashes and making it
more visually pleasant.

Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
desktop-shell/exposay.c