It looks like this would be a pretty common thing a client needs to do:
mir_render_surface_set_size(surface, new_width, new_height); MirWindowSpec* spec = mir_create_window_spec(mir_window_get_connection(window)); mir_window_spec_add_render_surface(spec, surface, new_width, new_height, 0, 0); mir_window_apply_spec(window, spec); mir_window_spec_release(spec);
Maybe a convenience api should be introduced? maybe mir_window_resize_content(MirWindow* window, MirRenderSurface* surface, int new_width, int new_height) ? Just a thought...
« Back to merge proposal
It looks like this would be a pretty common thing a client needs to do:
mir_ render_ surface_ set_size( surface, new_width, new_height); window_ spec(mir_ window_ get_connection( window) ); window_ spec_add_ render_ surface( spec, surface, new_width, new_height, 0, 0); window_ apply_spec( window, spec); window_ spec_release( spec);
MirWindowSpec* spec = mir_create_
mir_
mir_
mir_
Maybe a convenience api should be introduced? maybe mir_window_ resize_ content( MirWindow* window, MirRenderSurface* surface, int new_width, int new_height) ? Just a thought...