summaryrefslogtreecommitdiffstats
path: root/sway/extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/extensions.c')
-rw-r--r--sway/extensions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/extensions.c b/sway/extensions.c
index 15d2f971..96957dbf 100644
--- a/sway/extensions.c
+++ b/sway/extensions.c
@@ -86,7 +86,7 @@ static void set_background(struct wl_client *client, struct wl_resource *resourc
86 struct wl_resource *_output, struct wl_resource *surface) { 86 struct wl_resource *_output, struct wl_resource *surface) {
87 pid_t pid; 87 pid_t pid;
88 wl_client_get_credentials(client, &pid, NULL, NULL); 88 wl_client_get_credentials(client, &pid, NULL, NULL);
89 if (!(get_feature_policy(pid) & FEATURE_BACKGROUND)) { 89 if (!(get_feature_policy_mask(pid) & FEATURE_BACKGROUND)) {
90 sway_log(L_INFO, "Denying background feature to %d", pid); 90 sway_log(L_INFO, "Denying background feature to %d", pid);
91 return; 91 return;
92 } 92 }
@@ -114,7 +114,7 @@ static void set_panel(struct wl_client *client, struct wl_resource *resource,
114 struct wl_resource *_output, struct wl_resource *surface) { 114 struct wl_resource *_output, struct wl_resource *surface) {
115 pid_t pid; 115 pid_t pid;
116 wl_client_get_credentials(client, &pid, NULL, NULL); 116 wl_client_get_credentials(client, &pid, NULL, NULL);
117 if (!(get_feature_policy(pid) & FEATURE_PANEL)) { 117 if (!(get_feature_policy_mask(pid) & FEATURE_PANEL)) {
118 sway_log(L_INFO, "Denying panel feature to %d", pid); 118 sway_log(L_INFO, "Denying panel feature to %d", pid);
119 return; 119 return;
120 } 120 }
@@ -152,7 +152,7 @@ static void desktop_ready(struct wl_client *client, struct wl_resource *resource
152static void set_panel_position(struct wl_client *client, struct wl_resource *resource, uint32_t position) { 152static void set_panel_position(struct wl_client *client, struct wl_resource *resource, uint32_t position) {
153 pid_t pid; 153 pid_t pid;
154 wl_client_get_credentials(client, &pid, NULL, NULL); 154 wl_client_get_credentials(client, &pid, NULL, NULL);
155 if (!(get_feature_policy(pid) & FEATURE_PANEL)) { 155 if (!(get_feature_policy_mask(pid) & FEATURE_PANEL)) {
156 sway_log(L_INFO, "Denying panel feature to %d", pid); 156 sway_log(L_INFO, "Denying panel feature to %d", pid);
157 return; 157 return;
158 } 158 }
@@ -191,7 +191,7 @@ static void set_lock_surface(struct wl_client *client, struct wl_resource *resou
191 struct wl_resource *_output, struct wl_resource *surface) { 191 struct wl_resource *_output, struct wl_resource *surface) {
192 pid_t pid; 192 pid_t pid;
193 wl_client_get_credentials(client, &pid, NULL, NULL); 193 wl_client_get_credentials(client, &pid, NULL, NULL);
194 if (!(get_feature_policy(pid) & FEATURE_LOCK)) { 194 if (!(get_feature_policy_mask(pid) & FEATURE_LOCK)) {
195 sway_log(L_INFO, "Denying lock feature to %d", pid); 195 sway_log(L_INFO, "Denying lock feature to %d", pid);
196 return; 196 return;
197 } 197 }