mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Don't set FocusWindow Attrib. Fixes crash on XCloseDisplay
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14153 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
28e92746b8
commit
65701cac5d
4 changed files with 4 additions and 9 deletions
|
@ -1,8 +1,7 @@
|
|||
2002-07-14 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/x11/XGServer.m ([XGServer -dealloc]): Don't close
|
||||
the display (except when DEBUG), till we figure out why it
|
||||
always crashes here.
|
||||
* Source/x11/XIMInputServer.m (-ximCreateIC:): Don't set
|
||||
FocusWindow attrib. Causes a segfault at XCloseDisplay..
|
||||
|
||||
2002-07-13 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
|
|
|
@ -420,11 +420,7 @@ _parse_display_name(NSString *name, int *dn, int *sn)
|
|||
DESTROY(inputServer);
|
||||
[self _destroyServerWindows];
|
||||
NSFreeMapTable(screenList);
|
||||
#ifdef DEBUG
|
||||
/* FIXME: Avoid doing this until we figure out why we always
|
||||
segfault here */
|
||||
XCloseDisplay(dpy);
|
||||
#endif
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
|
@ -2140,7 +2140,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
|||
NSDebugLLog(@"Focus", @"Setting focus to unknown win %d", win);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
NSDebugLLog(@"XGTrace", @"DPSsetinputfocus: %d", win);
|
||||
/*
|
||||
* If we have an outstanding request to set focus to this window,
|
||||
|
|
|
@ -313,7 +313,7 @@
|
|||
{
|
||||
XIC xic;
|
||||
xic = XCreateIC(xim, XNClientWindow, w, XNInputStyle,
|
||||
xim_style, XNFocusWindow, w, NULL);
|
||||
xim_style, NULL);
|
||||
if (xic==NULL)
|
||||
NSDebugLLog(@"XIM", @"Can't create the input context.\n");
|
||||
return xic;
|
||||
|
|
Loading…
Reference in a new issue