mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
SnapToRegion: Evacuate tiled views from destroying outputs
This commit is contained in:
parent
25cea94a32
commit
4edd67de17
5 changed files with 56 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ bool regions_available(void);
|
|||
|
||||
void regions_init(struct server *server, struct seat *seat);
|
||||
void regions_update(struct output *output);
|
||||
void regions_evacuate_output(struct output *output);
|
||||
void regions_destroy(struct wl_list *regions);
|
||||
|
||||
struct region *regions_from_cursor(struct server *server);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,12 @@ struct view {
|
|||
bool minimized;
|
||||
bool maximized;
|
||||
uint32_t tiled; /* private, enum view_edge in src/view.c */
|
||||
|
||||
/* Pointer to an output owned struct region, may be NULL or already free'd */
|
||||
struct region *tiled_region;
|
||||
/* Set to region->name when tiled_region is free'd by a destroying output */
|
||||
char *tiled_region_evacuate;
|
||||
|
||||
struct wlr_output *fullscreen;
|
||||
|
||||
/* geometry of the wlr_surface contained within the view */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue