Fix for issue #419: Wayland: scale/resize issue.

This commit is contained in:
ManoloFLTK 2022-03-23 07:57:05 +01:00
parent 52015f2a26
commit 26a78c4992
1 changed files with 1 additions and 0 deletions

View File

@ -1490,6 +1490,7 @@ void Fl_Wayland_Window_Driver::resize(int X, int Y, int W, int H) {
fl_win->configured_width = W;
fl_win->configured_height = H;
if (!in_handle_configure && xdg_toplevel()) {
if (Fl_Window::is_a_rescale()) size_range();
struct libdecor_state *state = libdecor_state_new(int(W * f), int(H * f));
libdecor_frame_commit(fl_win->frame, state, NULL); // necessary only if resize is initiated by prog
libdecor_state_free(state);