X11: improve menubar behavior when across 2 screens with diverse scaling (#1380)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled

This commit is contained in:
ManoloFLTK
2026-03-17 09:27:48 +01:00
parent 8d612d91b2
commit cd301b8c0d
+1 -1
View File
@@ -2220,7 +2220,7 @@ int fl_handle(const XEvent& thisevent)
int num = d->screen_num_unscaled(X+ actual.width/2, Y +actual.height/2);
if (num == -1) num = olds;
float s = d->scale(num);
if (num != olds) {
if (num != olds && !window->menu_window()) {
if (s != d->scale(olds) &&
!Fl_X11_Window_Driver::data_for_resize_window_between_screens_.busy &&
window->user_data() != &Fl_X11_Screen_Driver::transient_scale_display) {