From: arjen Date: Thu, 26 Sep 2002 14:50:54 +0000 (+0000) Subject: Proper casting of event data in EV_ClientMessage() X-Git-Tag: V0_3~15 X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=822d50bf28fce7c1f15c86740d4f5f32e3a78b24;p=AXE.git Proper casting of event data in EV_ClientMessage() --- diff --git a/src/xwindow.cpp b/src/xwindow.cpp index e4c68a6..cc6aae9 100644 --- a/src/xwindow.cpp +++ b/src/xwindow.cpp @@ -5,7 +5,7 @@ *********************** ** FILE NAME : xwindow.cpp ** SYSTEM NAME : AXE - Andromeda X-windows Encapsulation -** VERSION NUMBER : $Revision: 1.1 $ +** VERSION NUMBER : $Revision: 1.2 $ ** ** DESCRIPTION : Implementation of the window class ** @@ -23,12 +23,15 @@ /***************************** $Log: xwindow.cpp,v $ - Revision 1.1 2002-07-25 08:01:27 arjen + Revision 1.2 2002-09-26 14:50:54 arjen + Proper casting of event data in EV_ClientMessage() + + Revision 1.1 2002/07/25 08:01:27 arjen First checkin, AXE release 0.2 *****************************/ -static const char *RCSID = "$Id: xwindow.cpp,v 1.1 2002-07-25 08:01:27 arjen Exp $"; +static const char *RCSID = "$Id: xwindow.cpp,v 1.2 2002-09-26 14:50:54 arjen Exp $"; #include "xappl.h" /* Includes xwindow.h */ @@ -512,7 +515,7 @@ int managed_window::EV_ClientMessage(XClientMessageEvent ev) { if (ev.message_type == XInternAtom(stddpy, "WM_PROTOCOLS", True)) { - if (ev.data.l[0] == XInternAtom(stddpy, "WM_DELETE_WINDOW", True)) + if ((Atom)ev.data.l[0] == XInternAtom(stddpy, "WM_DELETE_WINDOW", True)) { return XApp->SendCommand(WM_Delete_Command); }