The width and height values have been calculated by NAppGUI compositor.
With Wayland backend, the window is sized slightly smaller than the width and height values. Specifically, 50 pixels less in width and 89 pixels less in height. With x11 backend the window is sized correctly.
Study the case to determine if anything can be done within the NAppGUI code to make this work correctly in Wayland. Obviously, using width + 50, height + 89 if we detect the Wayland backend seems to solve the problem.
At the moment, NAppGUI forces to use X11 as GDK_BACKEND in hopes of solving this problem.
The final size of NAppGUI Window in GTK is made in: https://github.com/frang75/nappgui_src/blob/main/src/osgui/gtk3/oswindow.c line 772, calling to
gtk_widget_set_size_request(window->control.widget, (gint)width, (gint)height);
The
width
andheight
values have been calculated by NAppGUI compositor.With Wayland backend, the window is sized slightly smaller than the width and height values. Specifically, 50 pixels less in width and 89 pixels less in height. With x11 backend the window is sized correctly.
Study the case to determine if anything can be done within the NAppGUI code to make this work correctly in Wayland. Obviously, using
width + 50, height + 89
if we detect the Wayland backend seems to solve the problem.At the moment, NAppGUI forces to use X11 as GDK_BACKEND in hopes of solving this problem.