Changed: Minor changes

This commit is contained in:
kervala 2016-01-02 11:34:17 +01:00
parent a780c147c9
commit ac56530c2d

View file

@ -37,10 +37,8 @@ static Atom XA_WM_DELETE_WINDOW = 0;
namespace NLMISC { namespace NLMISC {
CUnixEventEmitter::CUnixEventEmitter ():_dpy(NULL), _win(0), _driver(NULL) CUnixEventEmitter::CUnixEventEmitter ():_dpy(NULL), _win(0), _im(NULL), _ic(NULL), _driver(NULL)
{ {
_im = 0;
_ic = 0;
_SelectionOwned = false; _SelectionOwned = false;
} }
@ -526,11 +524,11 @@ bool CUnixEventEmitter::processMessage (XEvent &event, CEventServer *server)
_PressedKeys[key] = true; _PressedKeys[key] = true;
// don't send a control character when deleting // don't send a control character when deleting
if (key == KeyDELETE) if (key == KeyDELETE) c = 0;
c = 0;
} }
Text[c] = '\0'; Text[c] = '\0';
if (c > 0) if (c > 0)
{ {
#ifdef X_HAVE_UTF8_STRING #ifdef X_HAVE_UTF8_STRING