mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
view: commonize sub-view logic in view_move_to_front/back()
The logic was the same for xdg-shell and xwayland views, so move it from the view->impl layer out to the view_move_to_front/back() functions. view->impl->move_to_front/back() still exist for now, in case we want to add xdg/xwayland-specific logic in future, but they now move only one view and not sub-views.
This commit is contained in:
parent
048d22d473
commit
47e80a488e
5 changed files with 57 additions and 90 deletions
|
|
@ -8,16 +8,10 @@
|
|||
* functions should call these functions.
|
||||
*/
|
||||
|
||||
enum z_direction {
|
||||
LAB_TO_FRONT,
|
||||
LAB_TO_BACK,
|
||||
};
|
||||
|
||||
struct view;
|
||||
|
||||
void view_impl_move_to_front(struct view *view);
|
||||
void view_impl_move_to_back(struct view *view);
|
||||
void view_impl_move_sub_views(struct view *parent, enum z_direction z_direction);
|
||||
void view_impl_map(struct view *view);
|
||||
void view_impl_unmap(struct view *view);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue