mirror of https://github.com/fltk/fltk
Fix for issue #419: Wayland: scale/resize issue.
This commit is contained in:
parent
52015f2a26
commit
26a78c4992
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue