mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 05:35:29 +08:00
Fix Mac: "Merge All Windows" fails if focused window is borderless (#1100)
This commit is contained in:
@@ -593,10 +593,12 @@ static void move_tab_cb(Fl_Widget *, void *data)
|
|||||||
|
|
||||||
static void merge_all_windows_cb(Fl_Widget *, void *)
|
static void merge_all_windows_cb(Fl_Widget *, void *)
|
||||||
{
|
{
|
||||||
Fl_Window *first = Fl::first_window();
|
Fl_Window *first = Fl::first_window();
|
||||||
if (first) {
|
while (first && (first->parent() || !first->border()))
|
||||||
[(NSWindow*)fl_xid(first) mergeAllWindows:nil];
|
first = Fl::next_window(first);
|
||||||
}
|
if (first) {
|
||||||
|
[(NSWindow*)fl_xid(first) mergeAllWindows:nil];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user