dont abort on BadWindow

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3770 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-03-18 22:10:58 +00:00
parent 13978291c4
commit c18a87393d
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-03-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
* lyx_gui.C (LyX_XErrHandler): don't abort on BadWindow
2002-03-18 Juergen Vigna <jug@sad.it> 2002-03-18 Juergen Vigna <jug@sad.it>
* tabular.C (LeftAlreadyDrawed): fixed for multicolumn borders. * tabular.C (LeftAlreadyDrawed): fixed for multicolumn borders.

View File

@ -76,6 +76,11 @@ extern "C" {
static static
int LyX_XErrHandler(Display * display, XErrorEvent * xeev) int LyX_XErrHandler(Display * display, XErrorEvent * xeev)
{ {
if (xeev->error_code == BadWindow) {
// We don't abort on BadWindow
return 0;
}
// emergency cleanup // emergency cleanup
LyX::emergencyCleanup(); LyX::emergencyCleanup();