|
|
@ -757,12 +757,12 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case FocusIn:
|
|
|
|
case FocusIn:
|
|
|
|
// keyboard focus
|
|
|
|
// keyboard focus
|
|
|
|
server->postEvent (new CEventSetFocus (true, this));
|
|
|
|
// server->postEvent (new CEventSetFocus (true, this));
|
|
|
|
if (_ic) XSetICFocus(_ic);
|
|
|
|
if (_ic) XSetICFocus(_ic);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case FocusOut:
|
|
|
|
case FocusOut:
|
|
|
|
// keyboard focus
|
|
|
|
// keyboard focus
|
|
|
|
server->postEvent (new CEventSetFocus (false, this));
|
|
|
|
// server->postEvent (new CEventSetFocus (false, this));
|
|
|
|
if (_ic) XUnsetICFocus(_ic);
|
|
|
|
if (_ic) XUnsetICFocus(_ic);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case KeymapNotify:
|
|
|
|
case KeymapNotify:
|
|
|
@ -776,10 +776,10 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
|
|
|
|
createIM();
|
|
|
|
createIM();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case ClientMessage:
|
|
|
|
case ClientMessage:
|
|
|
|
if ((xevent.xclient.format == 32) && (xevent.xclient.data.l[0] == videodata->WM_DELETE_WINDOW))
|
|
|
|
// if ((xevent.xclient.format == 32) && (xevent.xclient.data.l[0] == videodata->WM_DELETE_WINDOW))
|
|
|
|
{
|
|
|
|
// {
|
|
|
|
server->postEvent (new CEventDestroyWindow (this));
|
|
|
|
// server->postEvent (new CEventDestroyWindow (this));
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
// nlinfo("UnknownEvent");
|
|
|
|
// nlinfo("UnknownEvent");
|
|
|
|