Implement permit & reject

This commit is contained in:
Drew DeVault 2018-09-06 22:40:41 -04:00
parent 0b9f327f1a
commit 8932d17275
9 changed files with 79 additions and 21 deletions

View file

@ -263,14 +263,13 @@ enum sway_popup_during_fullscreen {
};
enum secure_feature {
FEATURE_FULLSCREEN = 1 << 0,
FEATURE_DATA_CONTROL_MGR = 1 << 1,
FEATURE_DMABUF_EXPORT = 1 << 2,
FEATURE_SCREENCOPY = 1 << 3,
FEATURE_GAMMA_CONTROL = 1 << 4,
FEATURE_INPUT_INHIBIT = 1 << 5,
FEATURE_LAYER_SHELL = 1 << 6,
FEATURE_VIRTUAL_KEYBOARD = 1 << 7,
FEATURE_DATA_CONTROL_MGR = 1 << 0,
FEATURE_DMABUF_EXPORT = 1 << 1,
FEATURE_SCREENCOPY = 1 << 2,
FEATURE_GAMMA_CONTROL = 1 << 3,
FEATURE_INPUT_INHIBIT = 1 << 4,
FEATURE_LAYER_SHELL = 1 << 5,
FEATURE_VIRTUAL_KEYBOARD = 1 << 6,
};
struct feature_policy {

View file

@ -14,4 +14,11 @@ struct feature_policy *get_feature_policy(
struct wl_client *create_secure_client(struct wl_display *display,
int fd, const struct feature_policy *policy);
struct feature_name {
char *name;
uint64_t value;
};
extern struct feature_name feature_names[];
#endif