]> git.lyx.org Git - features.git/commitdiff
Workaround for xforms bug, not hiding tooltip on dialog close.
authorAngus Leeming <leeming@lyx.org>
Thu, 3 Oct 2002 11:25:01 +0000 (11:25 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 3 Oct 2002 11:25:01 +0000 (11:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5356 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormBase.C
src/frontends/xforms/FormBaseDeprecated.C
src/frontends/xforms/lyx_gui.C

index fedad6633c362f31f73b4ee8d0b6d2c93fc48092..a2bbbba8803d78c7a81ede47054627ec41f44609 100644 (file)
@@ -1,3 +1,12 @@
+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]:
index 545234c9efd8b6a5469d4973111f7067b7c9507a..980ac632cc0fd7241015e9088e69735499448cf8 100644 (file)
@@ -28,6 +28,9 @@
 
 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 *);
@@ -161,6 +164,10 @@ void FormBase::show()
 
 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
index 0984fb6bd2f9b04312a58875c33c77820c860992..7b2b0bd09f6b085d5e5f2b57cc0e5835beeb99b0 100644 (file)
@@ -32,6 +32,9 @@
 
 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 *);
@@ -170,6 +173,10 @@ void FormBaseDeprecated::show()
 
 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
index e796095505bbb5de922736a2c411a72c401b96ec..1bfaf194eebb904ea298178b063210a959f594eb 100644 (file)
@@ -313,8 +313,9 @@ void lyx_gui::start(string const & batch, vector<string> files)
                        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;
                }
        }