mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
SnapToRegion: Add config parser
This commit is contained in:
parent
51727cf8f7
commit
43fe138385
5 changed files with 86 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ struct rcxml {
|
|||
int popuptime;
|
||||
struct wl_list workspaces; /* struct workspace.link */
|
||||
} workspace_config;
|
||||
|
||||
/* Regions */
|
||||
struct wl_list regions; /* struct region.link */
|
||||
};
|
||||
|
||||
extern struct rcxml rc;
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ struct region {
|
|||
} center;
|
||||
};
|
||||
|
||||
/* Can be used as a cheap check to detect if there are any regions configured */
|
||||
bool regions_available(void);
|
||||
|
||||
void regions_init(struct server *server, struct seat *seat);
|
||||
void regions_update(struct output *output);
|
||||
void regions_destroy(struct wl_list *regions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue