setinputstate: Return if window is 0

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15001 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-11-17 04:50:12 +00:00
parent 3ca3aceb03
commit aad0382917
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2002-11-16 Adam Fedor <fedor@gnu.org>
* Source/x11/XGServerWindow.m ([XGServer -setinputstate::]): Return
if window is NULL.
2002-11-16 Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/x11/XGOpenGL.h: Added define to avoid collision of

View file

@ -2239,6 +2239,11 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
gswindow_device_t *window = WINDOW_WITH_TAG(win);
XEvent event;
if (win == 0 || window == 0)
{
return;
}
event.xclient.type = ClientMessage;
event.xclient.message_type = generic.titlebar_state_atom;
event.xclient.format = 32;