mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view: store title/app_id in view
This simplifies our codes and eliminates duplicated
`view.events.new_{title,app_id}` events. This should not change any
behaviors.
This commit is contained in:
parent
27cc738985
commit
babd7af8f8
13 changed files with 87 additions and 155 deletions
|
|
@ -106,7 +106,6 @@ struct view_size_hints {
|
|||
struct view_impl {
|
||||
void (*configure)(struct view *view, struct wlr_box geo);
|
||||
void (*close)(struct view *view);
|
||||
const char *(*get_string_prop)(struct view *view, const char *prop);
|
||||
void (*map)(struct view *view);
|
||||
void (*set_activated)(struct view *view, bool activated);
|
||||
void (*set_fullscreen)(struct view *view, bool fullscreen);
|
||||
|
|
@ -173,6 +172,10 @@ struct view {
|
|||
struct wlr_scene_tree *scene_tree;
|
||||
struct wlr_scene_tree *content_tree;
|
||||
|
||||
/* These are never NULL and an empty string is set instead. */
|
||||
char *title;
|
||||
char *app_id; /* WM_CLASS for xwayland windows */
|
||||
|
||||
bool mapped;
|
||||
bool been_mapped;
|
||||
enum lab_ssd_mode ssd_mode;
|
||||
|
|
@ -571,9 +574,8 @@ bool view_on_output(struct view *view, struct output *output);
|
|||
*/
|
||||
bool view_has_strut_partial(struct view *view);
|
||||
|
||||
const char *view_get_string_prop(struct view *view, const char *prop);
|
||||
void view_update_title(struct view *view);
|
||||
void view_update_app_id(struct view *view);
|
||||
void view_set_title(struct view *view, const char *title);
|
||||
void view_set_app_id(struct view *view, const char *app_id);
|
||||
void view_reload_ssd(struct view *view);
|
||||
|
||||
void view_set_shade(struct view *view, bool shaded);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue