// "$Id: Fl_Menu.cxx,v 1.8 1998/12/08 21:04:35 mike Exp $"
// "$Id: Fl_Menu.cxx,v 1.9 1999/01/05 17:52:59 mike Exp $"
//
// Menu code for the Fast Light Tool Kit (FLTK).
//
@ -138,12 +138,12 @@ void Fl_Menu_Item::draw(int x, int y, int w, int h, const Fl_Menu_* m,
@@ -138,12 +138,12 @@ void Fl_Menu_Item::draw(int x, int y, int w, int h, const Fl_Menu_* m,
// "$Id: Fl_x.cxx,v 1.18 1999/01/04 19:25:03 mike Exp $"
// "$Id: Fl_x.cxx,v 1.19 1999/01/05 17:53:00 mike Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
@ -281,23 +281,18 @@ ulong fl_event_time; // the last timestamp from an x event
@@ -281,23 +281,18 @@ ulong fl_event_time; // the last timestamp from an x event
charfl_key_vector[32];// used by Fl::get_key()
// Record event mouse position and state from an XEvent:
// Also fix buggy window managers: since we now have a window event
// x/y and a root x/y we can figure out the real window position even
// if the window manager sent an incorrect ConfigureNotify event.
staticintpx,py;
staticulongptime;
staticvoidset_event_xy(Fl_Window*window){
staticvoidset_event_xy(){
#if CONSOLIDATE_MOTION
send_motion=0;
#endif
Fl::e_x_root=fl_xevent->xbutton.x_root;
Fl::e_x=fl_xevent->xbutton.x;
Fl_X::x(window,Fl::e_x_root-Fl::e_x);
Fl::e_y_root=fl_xevent->xbutton.y_root;
Fl::e_y=fl_xevent->xbutton.y;
Fl_X::y(window,Fl::e_y_root-Fl::e_y);
Fl::e_state=fl_xevent->xbutton.state<<16;
fl_event_time=fl_xevent->xbutton.time;
#ifdef __sgi
@ -390,13 +385,13 @@ int fl_handle(const XEvent& xevent)
@@ -390,13 +385,13 @@ int fl_handle(const XEvent& xevent)