mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
Fix "Please remove the slight transparency from menu windows on macOS" (#1373)
This commit is contained in:
@@ -3108,9 +3108,6 @@ void Fl_Cocoa_Window_Driver::makeWindow()
|
|||||||
this->x(round(crect.origin.x/s));
|
this->x(round(crect.origin.x/s));
|
||||||
this->y( round((main_screen_height - crect.origin.y)/s) - w->h() );
|
this->y( round((main_screen_height - crect.origin.y)/s) - w->h() );
|
||||||
}
|
}
|
||||||
if(w->menu_window()) { // make menu windows slightly transparent
|
|
||||||
[cw setAlphaValue:0.97];
|
|
||||||
}
|
|
||||||
// Install DnD handlers
|
// Install DnD handlers
|
||||||
[myview registerForDraggedTypes:[NSArray arrayWithObjects:NSPasteboardTypeString,
|
[myview registerForDraggedTypes:[NSArray arrayWithObjects:NSPasteboardTypeString,
|
||||||
fl_filenames_pboard_type, nil]];
|
fl_filenames_pboard_type, nil]];
|
||||||
|
|||||||
Reference in New Issue
Block a user