mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
Refactor XDG and Xwayland view creation and cleanup
This commit is contained in:
parent
e1725e17b2
commit
1506fe3af8
6 changed files with 205 additions and 112 deletions
|
|
@ -20,4 +20,6 @@ void view_impl_map(struct view *view);
|
|||
*/
|
||||
void view_impl_apply_geometry(struct view *view, int w, int h);
|
||||
|
||||
void view_impl_remove_common_listeners(struct view *view);
|
||||
|
||||
#endif /* __LABWC_VIEW_IMPL_COMMON_H */
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ struct view_impl {
|
|||
void (*maximize)(struct view *view, bool maximize);
|
||||
void (*move_to_front)(struct view *view);
|
||||
void (*move_to_back)(struct view *view);
|
||||
void (*setup_common_listeners)(struct view *view);
|
||||
void (*setup_specific_listeners)(struct view *view);
|
||||
void (*remove_common_listeners)(struct view *view);
|
||||
void (*remove_specific_listeners)(struct view *view);
|
||||
};
|
||||
|
||||
struct view {
|
||||
|
|
@ -197,6 +201,8 @@ void view_adjust_size(struct view *view, int *w, int *h);
|
|||
|
||||
void view_evacuate_region(struct view *view);
|
||||
void view_on_output_destroy(struct view *view);
|
||||
|
||||
void view_init(struct view *view);
|
||||
void view_destroy(struct view *view);
|
||||
|
||||
/* xdg.c */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue