diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index b61c0a19..a8de135f 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -595,7 +595,7 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s | |||
595 | pid_t pid = wlc_view_get_pid(view); | 595 | pid_t pid = wlc_view_get_pid(view); |
596 | switch (state) { | 596 | switch (state) { |
597 | case WLC_BIT_FULLSCREEN: | 597 | case WLC_BIT_FULLSCREEN: |
598 | if (!(get_feature_policy(pid) & FEATURE_FULLSCREEN)) { | 598 | if (!(get_feature_policy_mask(pid) & FEATURE_FULLSCREEN)) { |
599 | sway_log(L_INFO, "Denying fullscreen to %d (%s)", pid, c->name); | 599 | sway_log(L_INFO, "Denying fullscreen to %d (%s)", pid, c->name); |
600 | break; | 600 | break; |
601 | } | 601 | } |
@@ -811,7 +811,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
811 | swayc_t *focused = get_focused_container(&root_container); | 811 | swayc_t *focused = get_focused_container(&root_container); |
812 | if (focused->type == C_VIEW) { | 812 | if (focused->type == C_VIEW) { |
813 | pid_t pid = wlc_view_get_pid(focused->handle); | 813 | pid_t pid = wlc_view_get_pid(focused->handle); |
814 | if (!(get_feature_policy(pid) & FEATURE_KEYBOARD)) { | 814 | if (!(get_feature_policy_mask(pid) & FEATURE_KEYBOARD)) { |
815 | return EVENT_HANDLED; | 815 | return EVENT_HANDLED; |
816 | } | 816 | } |
817 | } | 817 | } |
@@ -875,7 +875,7 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct | |||
875 | swayc_t *focused = get_focused_container(&root_container); | 875 | swayc_t *focused = get_focused_container(&root_container); |
876 | if (focused->type == C_VIEW) { | 876 | if (focused->type == C_VIEW) { |
877 | pid_t pid = wlc_view_get_pid(focused->handle); | 877 | pid_t pid = wlc_view_get_pid(focused->handle); |
878 | if (!(get_feature_policy(pid) & FEATURE_MOUSE)) { | 878 | if (!(get_feature_policy_mask(pid) & FEATURE_MOUSE)) { |
879 | return EVENT_HANDLED; | 879 | return EVENT_HANDLED; |
880 | } | 880 | } |
881 | } | 881 | } |
@@ -953,7 +953,7 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w | |||
953 | if (swayc_is_fullscreen(focused)) { | 953 | if (swayc_is_fullscreen(focused)) { |
954 | if (focused->type == C_VIEW) { | 954 | if (focused->type == C_VIEW) { |
955 | pid_t pid = wlc_view_get_pid(focused->handle); | 955 | pid_t pid = wlc_view_get_pid(focused->handle); |
956 | if (!(get_feature_policy(pid) & FEATURE_MOUSE)) { | 956 | if (!(get_feature_policy_mask(pid) & FEATURE_MOUSE)) { |
957 | return EVENT_HANDLED; | 957 | return EVENT_HANDLED; |
958 | } | 958 | } |
959 | } | 959 | } |
@@ -1001,7 +1001,7 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w | |||
1001 | 1001 | ||
1002 | if (focused->type == C_VIEW) { | 1002 | if (focused->type == C_VIEW) { |
1003 | pid_t pid = wlc_view_get_pid(focused->handle); | 1003 | pid_t pid = wlc_view_get_pid(focused->handle); |
1004 | if (!(get_feature_policy(pid) & FEATURE_MOUSE)) { | 1004 | if (!(get_feature_policy_mask(pid) & FEATURE_MOUSE)) { |
1005 | return EVENT_HANDLED; | 1005 | return EVENT_HANDLED; |
1006 | } | 1006 | } |
1007 | } | 1007 | } |