Fix Mac: "Merge All Windows" fails if focused window is borderless (#1100)
This commit is contained in:
parent
7ce5b74e12
commit
b3a6838128
@ -593,10 +593,12 @@ static void move_tab_cb(Fl_Widget *, void *data)
|
||||
|
||||
static void merge_all_windows_cb(Fl_Widget *, void *)
|
||||
{
|
||||
Fl_Window *first = Fl::first_window();
|
||||
if (first) {
|
||||
[(NSWindow*)fl_xid(first) mergeAllWindows:nil];
|
||||
}
|
||||
Fl_Window *first = Fl::first_window();
|
||||
while (first && (first->parent() || !first->border()))
|
||||
first = Fl::next_window(first);
|
||||
if (first) {
|
||||
[(NSWindow*)fl_xid(first) mergeAllWindows:nil];
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user