Commit graph

4 commits

Author SHA1 Message Date
tokyo4j
be491e0e4c overlay: add inactivate_overlay() as refactoring
This change brings a subtle behavioral change that region overlay is hidden
immediately when the timer for edge overlay starts.
2024-04-15 12:33:40 +02:00
tokyo4j
7c2fa5f8e2 overlay: remove checks already done in wlroots side 2024-04-15 12:33:40 +02:00
Consolatis
c35ba02ffa Use pre-multiplied colors by default
wlr_scene_rects expect their color to be pre-multiplied
while cairo_set_source_rgba() expects them to not be
pre-multiplied. With this patch we now use premultiplied
colors internally by default and then reverse it when
setting cairo colors.

This ensures the titlebar uses a consistent color in case
it was defined with some transparency by the user.

Fixes: #1684
2024-04-06 22:54:09 +02:00
Hiroaki Yamamoto
5cc0757390
overlay: add snap-to-edge overlay (PR #1652)
...and unify region overlay and snap-to-edge overlay into overlay.c.

Snap-to-edge overlay is delayed for 500ms to prevent flickering when
the view is dragged from an output to another (demo in discussion labwc#1613).

This also fixes a bug that region overlay is not shown when a modifier
key is re-pressed.
2024-04-05 04:35:31 +02:00