mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +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
638001a45a
commit
64208ef33b
2 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue