mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
Fix for issue #419: Wayland: scale/resize issue.
This commit is contained in:
@@ -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_width = W;
|
||||||
fl_win->configured_height = H;
|
fl_win->configured_height = H;
|
||||||
if (!in_handle_configure && xdg_toplevel()) {
|
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));
|
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_frame_commit(fl_win->frame, state, NULL); // necessary only if resize is initiated by prog
|
||||||
libdecor_state_free(state);
|
libdecor_state_free(state);
|
||||||
|
|||||||
Reference in New Issue
Block a user