mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
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:
parent
3ca3aceb03
commit
aad0382917
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue