mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Workaround for xforms bug, not hiding tooltip on dialog close.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5356 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
98df633ced
commit
990007a012
@ -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]:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user