diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-23 11:15:04 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-23 11:15:04 +0200 |
| commit | 39a157a7dd83e1626c9f67e0b09d6deb23aa7c76 (patch) | |
| tree | 1d293a1dea40a80bbbb80e8dbea011b7ae51769b /src/Fl_cocoa.mm | |
| parent | 17baeceb7ab90251f99c7909eb9eeca92aec5a05 (diff) | |
Wayland: implement transient scale factor windows as popups
as discussed in issue #794.
Also, fix for macOS the use of the FL_FOCUS event for these transient windows
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 76753d4f9..fbbe6aebf 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3144,7 +3144,8 @@ void Fl_Cocoa_Window_Driver::makeWindow() if (w->modal()) Fl::modal_ = w; w->set_visible(); - if ( w->border() || (!w->modal() && !w->tooltip_window()) ) Fl::handle(FL_FOCUS, w); + if ( w->border() || (!w->modal() && !w->tooltip_window() && + w->user_data() != &Fl_Screen_Driver::transient_scale_display) ) Fl::handle(FL_FOCUS, w); [cw setDelegate:[FLWindowDelegate singleInstance]]; if (show_iconic()) { show_iconic(0); |
