mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Add initial basic support for fullscreen surfaces
This commit is contained in:
parent
5e4d83f499
commit
0ce245761c
6 changed files with 137 additions and 37 deletions
|
|
@ -1017,6 +1017,10 @@ resize_handler(struct window *window,
|
|||
height = (pixel_height - 2 * terminal->margin) /
|
||||
(int32_t) terminal->extents.height;
|
||||
|
||||
if (terminal->fullscreen)
|
||||
window_set_child_size(terminal->window,
|
||||
pixel_width, pixel_height);
|
||||
|
||||
terminal_resize(terminal, width, height);
|
||||
}
|
||||
|
||||
|
|
@ -2283,7 +2287,6 @@ terminal_create(struct display *display, int fullscreen)
|
|||
terminal->display = display;
|
||||
terminal->margin = 5;
|
||||
|
||||
window_set_fullscreen(terminal->window, terminal->fullscreen);
|
||||
window_set_user_data(terminal->window, terminal);
|
||||
window_set_redraw_handler(terminal->window, redraw_handler);
|
||||
window_set_resize_handler(terminal->window, resize_handler);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue