mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
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.
25 lines
771 B
C
25 lines
771 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_VIEW_IMPL_COMMON_H
|
|
#define LABWC_VIEW_IMPL_COMMON_H
|
|
/*
|
|
* Common code for view->impl functions
|
|
*
|
|
* Please note: only xdg-shell-toplevel-view and xwayland-view view_impl
|
|
* functions should call these functions.
|
|
*/
|
|
|
|
struct view;
|
|
|
|
void view_impl_move_to_front(struct view *view);
|
|
void view_impl_move_to_back(struct view *view);
|
|
void view_impl_map(struct view *view);
|
|
void view_impl_unmap(struct view *view);
|
|
|
|
/*
|
|
* Updates view geometry at commit based on current position/size,
|
|
* pending move/resize, and committed surface size. The computed
|
|
* position may not match pending.x/y exactly in some cases.
|
|
*/
|
|
void view_impl_apply_geometry(struct view *view, int w, int h);
|
|
|
|
#endif /* LABWC_VIEW_IMPL_COMMON_H */
|