Fix "Wayland: subwindows seem to grab scaling factor from primary monitor" (#1382)

This commit is contained in:
ManoloFLTK 2026-03-18 09:33:53 +01:00
parent 49359d1cdc
commit 6270570bd6

View File

@ -2126,7 +2126,7 @@ void Fl_Wayland_Window_Driver::menu_window_area(int &X, int &Y, int &W, int &H,
int Fl_Wayland_Window_Driver::wld_scale() { int Fl_Wayland_Window_Driver::wld_scale() {
Fl_X *flx = Fl_X::flx(pWindow); Fl_X *flx = Fl_X::flx(pWindow->top_window());
struct wld_window *xid = (flx ? (struct wld_window *)flx->xid : NULL); struct wld_window *xid = (flx ? (struct wld_window *)flx->xid : NULL);
if (!xid || wl_list_empty(&xid->outputs)) { if (!xid || wl_list_empty(&xid->outputs)) {
int scale = 1; int scale = 1;