mirror of
https://github.com/labwc/labwc.git
synced 2026-02-20 01:40:22 -05:00
ssd: eliminate ssd_hover_state (addressing a FIXME)
This commit is contained in:
parent
1188534876
commit
ba426e2271
8 changed files with 14 additions and 36 deletions
|
|
@ -225,7 +225,7 @@ struct server {
|
|||
*/
|
||||
struct view *active_view;
|
||||
|
||||
struct ssd_hover_state *ssd_hover_state;
|
||||
struct ssd_part_button *hovered_button;
|
||||
|
||||
/* Tree for all non-layer xdg/xwayland-shell surfaces */
|
||||
struct wlr_scene_tree *view_tree;
|
||||
|
|
|
|||
|
|
@ -173,12 +173,6 @@ struct ssd_part_button {
|
|||
struct wl_list link; /* ssd_titlebar_subtree.buttons_{left,right} */
|
||||
};
|
||||
|
||||
/* FIXME: This structure is redundant as ssd_part contains view */
|
||||
struct ssd_hover_state {
|
||||
struct view *view;
|
||||
struct ssd_part_button *button;
|
||||
};
|
||||
|
||||
struct wlr_buffer;
|
||||
struct wlr_scene_tree;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ struct wlr_cursor;
|
|||
#define SSD_SHADOW_INSET 0.3
|
||||
|
||||
/* Forward declare arguments */
|
||||
struct server;
|
||||
struct ssd;
|
||||
struct ssd_hover_state;
|
||||
struct ssd_part;
|
||||
struct view;
|
||||
struct wlr_scene;
|
||||
|
|
@ -52,9 +52,8 @@ void ssd_set_titlebar(struct ssd *ssd, bool enabled);
|
|||
void ssd_enable_keybind_inhibit_indicator(struct ssd *ssd, bool enable);
|
||||
void ssd_enable_shade(struct ssd *ssd, bool enable);
|
||||
|
||||
struct ssd_hover_state *ssd_hover_state_new(void);
|
||||
void ssd_update_button_hover(struct wlr_scene_node *node,
|
||||
struct ssd_hover_state *hover_state);
|
||||
void ssd_update_hovered_button(struct server *server,
|
||||
struct wlr_scene_node *node);
|
||||
|
||||
enum lab_node_type ssd_part_get_type(const struct ssd_part *part);
|
||||
struct view *ssd_part_get_view(const struct ssd_part *part);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue