mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
osd: generalize osd_{classic,thumbnail}_item
This allows us to share common codes for dealing with osd items. For example: - Get the clicked osd item to focus its associated window - Scroll the items when their total height is taller than output height
This commit is contained in:
parent
b0cc396e58
commit
681c4e2c51
6 changed files with 43 additions and 31 deletions
|
|
@ -20,7 +20,7 @@ struct output {
|
|||
struct wlr_scene_buffer *workspace_osd;
|
||||
|
||||
struct osd_scene {
|
||||
struct wl_array items; /* struct osd_scene_item */
|
||||
struct wl_list items; /* struct osd_item */
|
||||
struct wlr_scene_tree *tree;
|
||||
} osd_scene;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue