mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Merge 2cf0a85c45 into a109e6e3e8
This commit is contained in:
commit
d298311a32
10 changed files with 207 additions and 102 deletions
|
|
@ -21,6 +21,7 @@ enum property {
|
|||
* - 'app_id' for native Wayland windows
|
||||
* - 'WM_CLASS' for XWayland clients
|
||||
*/
|
||||
|
||||
struct window_rule {
|
||||
char *identifier;
|
||||
char *title;
|
||||
|
|
@ -38,6 +39,10 @@ struct window_rule {
|
|||
enum property fixed_position;
|
||||
|
||||
struct wl_list link; /* struct rcxml.window_rules */
|
||||
|
||||
/* Customisation window title and borders*/
|
||||
bool has_custom_border;
|
||||
float custom_border_color[4];
|
||||
};
|
||||
|
||||
struct view;
|
||||
|
|
@ -45,4 +50,11 @@ struct view;
|
|||
void window_rules_apply(struct view *view, enum window_rule_event event);
|
||||
enum property window_rules_get_property(struct view *view, const char *property);
|
||||
|
||||
/**
|
||||
* window_rules_get_custom_border_color - check for presence of custom color in window rules
|
||||
* @view: view data
|
||||
* @return: pointer to custom color or NULL if there is no custom color
|
||||
*/
|
||||
float *window_rules_get_custom_border_color(struct view *view);
|
||||
|
||||
#endif /* LABWC_WINDOW_RULES_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue