mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
ssd: unround hover effects when the window is tiled
This also fixes another problem that the window menu button as the fallback of the window icon is not rounded correctly. Now the translucent hover effect is stored separately from the non-hover icons and rendered on top of them. This might incur some overhead on pixman renderer, but it's not obvious in my testing.
This commit is contained in:
parent
915d638f8a
commit
35d6ada229
5 changed files with 150 additions and 145 deletions
|
|
@ -18,12 +18,18 @@
|
|||
struct ssd_button {
|
||||
struct view *view;
|
||||
enum ssd_part_type type;
|
||||
|
||||
struct wlr_scene_node *normal;
|
||||
struct wlr_scene_node *hover;
|
||||
struct wlr_scene_node *toggled;
|
||||
/*
|
||||
* Hover icons provided by user or builtin translucent hover overlay.
|
||||
* Hover overlays are rendered on top of normal/toggled nodes.
|
||||
*/
|
||||
struct wlr_scene_node *hover;
|
||||
struct wlr_scene_node *toggled_hover;
|
||||
struct wlr_scene_tree *icon_tree;
|
||||
struct wlr_scene_tree *hover_tree;
|
||||
|
||||
struct wlr_scene_tree *untoggled_tree;
|
||||
struct wlr_scene_tree *toggled_tree;
|
||||
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue