mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 12:18:08 +02:00
Resize the shell when the mode is switched
Resize the panel and the background when we're notified of a mode switch.
This commit is contained in:
parent
5f42930a41
commit
a356f7b1ef
1 changed files with 7 additions and 0 deletions
|
|
@ -1160,6 +1160,13 @@ output_handle_mode(void *data,
|
|||
int height,
|
||||
int refresh)
|
||||
{
|
||||
struct output *output = (struct output *)data;
|
||||
|
||||
if (flags & WL_OUTPUT_MODE_CURRENT) {
|
||||
window_schedule_resize(output->panel->window, width, 32);
|
||||
window_schedule_resize(output->background->window,
|
||||
width, height);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue