Mac OS only: allows to print a menu window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2011-02-24 16:58:00 +00:00
parent 8d9f90e416
commit 278c821ff4
+8 -4
View File
@@ -1239,10 +1239,13 @@ extern "C" {
NSEventType type = [theEvent type];
if (type == NSLeftMouseDown) {
Fl_Window *grab = Fl::grab();
if (grab && grab != [(FLWindow *)[theEvent window] getFl_Window]) {
// a click event out of a menu window, so we should close this menu
// done here to catch also clicks on window title bar/resize box
cocoaMouseHandler(theEvent);
if (grab) {
FLWindow *win = (FLWindow *)[theEvent window];
if ( [win isKindOfClass:[FLWindow class]] && grab != [win getFl_Window]) {
// a click event out of a menu window, so we should close this menu
// done here to catch also clicks on window title bar/resize box
cocoaMouseHandler(theEvent);
}
}
} else if (type == NSApplicationDefined) {
if ([theEvent subtype] == FLTKDataReadyEvent) {
@@ -2768,6 +2771,7 @@ int Fl_X::screen_init(XRectangle screens[], float dpi[])
nil];
[NSApp orderFrontStandardAboutPanelWithOptions:options];
}
//#include <FL/Fl_PostScript.H>
- (void)printPanel
{
Fl_Printer printer;