summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-03 23:06:59 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-03 23:06:59 +0100
commitf87aad746414a00888f8b0cef56dbb1fb8d60008 (patch)
treec62b860133e470af03dcbeb9645d02defaee0099 /src/drivers/Wayland
parentbbbc3a739c9843ad10c7077e1cf1307df5795463 (diff)
Use Fl_Window_Driver::is_resizable() to check whether window can be resized
Diffstat (limited to 'src/drivers/Wayland')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 44ffe3037..d86d713dc 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -885,7 +885,7 @@ static void handle_configure(struct libdecor_frame *frame,
if (is_2nd_run) {
width = libdecor_frame_get_content_width(frame);
height = libdecor_frame_get_content_height(frame);
- if (!window->fl_win->resizable()) {
+ if (!driver->is_resizable()) {
libdecor_frame_set_min_content_size(frame, width, height);
libdecor_frame_set_max_content_size(frame, width, height);
}
@@ -1416,7 +1416,7 @@ void Fl_Wayland_Window_Driver::makeWindow()
// appears in the Gnome desktop menu bar
libdecor_frame_set_app_id(new_window->frame, get_prog_name());
libdecor_frame_set_title(new_window->frame, pWindow->label()?pWindow->label():"");
- if (!pWindow->resizable()) {
+ if (!is_resizable()) {
libdecor_frame_unset_capabilities(new_window->frame, LIBDECOR_ACTION_RESIZE);
libdecor_frame_unset_capabilities(new_window->frame, LIBDECOR_ACTION_FULLSCREEN);
}