8590 |
struct frame *f = mac_focus_frame (dpyinfo); |
struct frame *f = mac_focus_frame (dpyinfo); |
8591 |
WindowPtr window_ptr; |
WindowPtr window_ptr; |
8592 |
|
|
8593 |
if (!f) |
#if 0 |
8594 |
|
if (dpyinfo->x_focus_frame == NULL) |
8595 |
{ |
{ |
8596 |
/* Beep if wheel move occurs when all the frames |
/* Beep if wheel move occurs when all the frames |
8597 |
are invisible. */ |
are invisible. */ |
8598 |
SysBeep(1); |
SysBeep(1); |
8599 |
break; |
break; |
8600 |
} |
} |
8601 |
|
#endif |
8602 |
|
|
8603 |
GetEventParameter(eventRef, kEventParamMouseWheelDelta, |
GetEventParameter(eventRef, kEventParamMouseWheelDelta, |
8604 |
typeSInt32, NULL, sizeof (SInt32), |
typeSInt32, NULL, sizeof (SInt32), |
9013 |
break; |
break; |
9014 |
#endif |
#endif |
9015 |
|
|
9016 |
|
#if 0 |
9017 |
if (dpyinfo->x_focus_frame == NULL) |
if (dpyinfo->x_focus_frame == NULL) |
9018 |
{ |
{ |
9019 |
/* Beep if keyboard input occurs when all the frames |
/* Beep if keyboard input occurs when all the frames |
9021 |
SysBeep (1); |
SysBeep (1); |
9022 |
break; |
break; |
9023 |
} |
} |
9024 |
|
#endif |
9025 |
|
|
9026 |
{ |
{ |
9027 |
static SInt16 last_key_script = -1; |
static SInt16 last_key_script = -1; |