1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 00:24:17 +01:00

Deny window resize requests

This commit is contained in:
Drew DeVault 2015-08-08 18:22:22 -04:00
parent 6066467dff
commit c7be30d912
3 changed files with 9 additions and 1 deletions

@ -37,3 +37,7 @@ void handle_view_focus(wlc_handle view, bool focus) {
wlc_view_set_state(view, WLC_BIT_ACTIVATED, focus); wlc_view_set_state(view, WLC_BIT_ACTIVATED, focus);
focus_view(get_swayc_for_handle(view, &root_container)); 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
}

@ -11,5 +11,6 @@ void handle_output_resolution_change(wlc_handle output, const struct wlc_size *f
bool handle_view_created(wlc_handle view); bool handle_view_created(wlc_handle view);
void handle_view_destroyed(wlc_handle view); void handle_view_destroyed(wlc_handle view);
void handle_view_focus(wlc_handle view, bool focus); void handle_view_focus(wlc_handle view, bool focus);
void handle_view_geometry_request(wlc_handle view, const struct wlc_geometry* geometry);
#endif #endif

@ -41,7 +41,10 @@ int main(int argc, char **argv) {
.view = { .view = {
.created = handle_view_created, .created = handle_view_created,
.destroyed = handle_view_destroyed, .destroyed = handle_view_destroyed,
.focus = handle_view_focus .focus = handle_view_focus,
.request = {
.geometry = handle_view_geometry_request
}
} }
}; };