mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Made all header files to have LABWC_ prefix in include guard identifers. Converted from __LABWC_ in 35 include/ files. Converted from __LAB_ in 5 include/ files. Added LABWC prefix to 3 include/ files. Added include guards to 3 include/ files. The double underscores were removed since according to C standard those "are always reserved for any use".
38 lines
797 B
C
38 lines
797 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_WINDOW_RULES_H
|
|
#define LABWC_WINDOW_RULES_H
|
|
|
|
enum window_rule_event {
|
|
LAB_WINDOW_RULE_EVENT_ON_FIRST_MAP = 0,
|
|
};
|
|
|
|
enum property {
|
|
LAB_PROP_UNSPECIFIED = 0,
|
|
LAB_PROP_UNSET,
|
|
LAB_PROP_FALSE,
|
|
LAB_PROP_TRUE,
|
|
};
|
|
|
|
/*
|
|
* 'identifier' represents:
|
|
* - 'app_id' for native Wayland windows
|
|
* - 'WM_CLASS' for XWayland clients
|
|
*/
|
|
struct window_rule {
|
|
char *identifier;
|
|
char *title;
|
|
|
|
enum window_rule_event event;
|
|
struct wl_list actions;
|
|
|
|
enum property server_decoration;
|
|
|
|
struct wl_list link; /* struct rcxml.window_rules */
|
|
};
|
|
|
|
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);
|
|
|
|
#endif /* LABWC_WINDOW_RULES_H */
|