+2002-10-03 Angus Leeming <leeming@lyx.org>
+
+ * lyx_gui.C (start): ev.xany.type is of type 'int' so print it as a
+ decimal not a hexadecimal.
+
+ * FormBase.C (hide):
+ * FormBaseDeprecated.C (hide): ensure that tooltips are hidden along
+ with the dialog.
+
2002-09-30 Angus Leeming <leeming@lyx.org>
* FormBase.[Ch]:
extern "C" {
+// This should be in forms.h but isn't
+void fl_hide_tooltip();
+
// Callback function invoked by xforms when the dialog is closed by the
// window manager
static int C_WMHideCB(FL_FORM * form, void *);
void FormBase::hide()
{
+ // Does no harm if none is visible and ensures that the tooltip form
+ // is hidden should the dialog be closed from the keyboard.
+ fl_hide_tooltip();
+
// xforms sometimes tries to process a hint-type MotionNotify, and
// use XQueryPointer, without verifying if the window still exists.
// So we try to clear out motion events in the queue before the
extern "C" {
+// This should be in forms.h but isn't
+void fl_hide_tooltip();
+
// Callback function invoked by xforms when the dialog is closed by the
// window manager
static int C_WMHideCB(FL_FORM *, void *);
void FormBaseDeprecated::hide()
{
+ // Does no harm if none is visible and ensures that the tooltip form
+ // is hidden should the dialog be closed from the keyboard.
+ fl_hide_tooltip();
+
// xforms sometimes tries to process a hint-type MotionNotify, and
// use XQueryPointer, without verifying if the window still exists.
// So we try to clear out motion events in the queue before the
XEvent ev;
fl_XNextEvent(&ev);
lyxerr << "Received unhandled X11 event" << endl;
- lyxerr << "Type: 0x" << hex << ev.xany.type <<
- " Target: 0x" << hex << ev.xany.window << dec << endl;
+ lyxerr << "Type: " << ev.xany.type
+ << " Target: 0x" << hex << ev.xany.window
+ << dec << endl;
}
}