mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
SnapToRegion: Add view_snap_to_region()
This commit is contained in:
parent
67952cd749
commit
9d3e309a22
2 changed files with 53 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ struct view {
|
|||
bool minimized;
|
||||
bool maximized;
|
||||
uint32_t tiled; /* private, enum view_edge in src/view.c */
|
||||
struct region *tiled_region;
|
||||
struct wlr_output *fullscreen;
|
||||
|
||||
/* geometry of the wlr_surface contained within the view */
|
||||
|
|
@ -134,6 +135,8 @@ void view_discover_output(struct view *view);
|
|||
void view_move_to_edge(struct view *view, const char *direction);
|
||||
void view_snap_to_edge(struct view *view, const char *direction,
|
||||
bool store_natural_geometry);
|
||||
void view_snap_to_region(struct view *view, struct region *region,
|
||||
bool store_natural_geometry);
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue