xwayland: Make xwl_randr_add_modes_fixed() public API

This is preparation work for making Xwayland rootful resizeable.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Olivier Fourdan 2023-07-13 17:06:05 +02:00
parent d6c5999e94
commit 63c0a2dfa2
2 changed files with 5 additions and 1 deletions

View File

@ -1080,7 +1080,7 @@ mode_sort(const void *left, const void *right)
return (*mode_b)->mode.width - (*mode_a)->mode.width;
}
static Bool
Bool
xwl_randr_add_modes_fixed(struct xwl_output *xwl_output,
int current_width, int current_height)
{

View File

@ -77,6 +77,10 @@ Bool xwl_screen_init_output(struct xwl_screen *xwl_screen);
Bool xwl_screen_init_randr_fixed(struct xwl_screen *xwl_screen);
Bool
xwl_randr_add_modes_fixed(struct xwl_output *xwl_output,
int current_width, int current_height);
void xwl_output_set_mode_fixed(struct xwl_output *xwl_output,
RRModePtr mode);