diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-08 18:22:22 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-08 18:22:22 -0400 |
commit | c7be30d91261180c9be65a3c2d8f40975f6a2e05 (patch) | |
tree | be48479257eb28221023a921a004a85a6059a2f2 /sway | |
parent | 6066467dff2a1c55c124f618af8a5406bfc6fac9 (diff) |
Deny window resize requests
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 4 | ||||
-rw-r--r-- | sway/handlers.h | 1 | ||||
-rw-r--r-- | sway/main.c | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 79cbd31d..84fd8544 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -37,3 +37,7 @@ void handle_view_focus(wlc_handle view, bool focus) { wlc_view_set_state(view, WLC_BIT_ACTIVATED, focus); focus_view(get_swayc_for_handle(view, &root_container)); } + +void handle_view_geometry_request(wlc_handle view, const struct wlc_geometry* geometry) { + // deny that shit +} diff --git a/sway/handlers.h b/sway/handlers.h index 36496fb7..4feebe05 100644 --- a/sway/handlers.h +++ b/sway/handlers.h @@ -11,5 +11,6 @@ void handle_output_resolution_change(wlc_handle output, const struct wlc_size *f bool handle_view_created(wlc_handle view); void handle_view_destroyed(wlc_handle view); void handle_view_focus(wlc_handle view, bool focus); +void handle_view_geometry_request(wlc_handle view, const struct wlc_geometry* geometry); #endif diff --git a/sway/main.c b/sway/main.c index e8603cab..65aa0faa 100644 --- a/sway/main.c +++ b/sway/main.c @@ -41,7 +41,10 @@ int main(int argc, char **argv) { .view = { .created = handle_view_created, .destroyed = handle_view_destroyed, - .focus = handle_view_focus + .focus = handle_view_focus, + .request = { + .geometry = handle_view_geometry_request + } } }; |