/////////////////////////////////////////////////////////////////////////////
#if defined(__WXX11__) || defined(__WXGTK__) || defined(__WXMOTIF__)
/////////////////////////////////////////////////////////////////////////////
#if defined(__WXX11__) || defined(__WXGTK__) || defined(__WXMOTIF__)
- wxUint32* data = new wxUint32[size];
- wxUint32* ptr = data;
+// The code below is correct for 64-bit machines also.
+// wxUint32* data = new wxUint32[size];
+// wxUint32* ptr = data;
+ unsigned long* data = new unsigned long[size];
+ unsigned long* ptr = data;
// Is the WM ICCCM supporting?
XGetWindowProperty(display, rootWnd,
// Is the WM ICCCM supporting?
XGetWindowProperty(display, rootWnd,
- _NET_SUPPORTING_WM_CHECK, 0, UINT_MAX,
+ _NET_SUPPORTING_WM_CHECK, 0, LONG_MAX,
False, XA_WINDOW, &type, &format, &nwins,
&after, (unsigned char **)&wins);
if ( type != XA_WINDOW || nwins <= 0 || wins[0] == None )
False, XA_WINDOW, &type, &format, &nwins,
&after, (unsigned char **)&wins);
if ( type != XA_WINDOW || nwins <= 0 || wins[0] == None )
// Query for supported features:
XGetWindowProperty(display, rootWnd,
// Query for supported features:
XGetWindowProperty(display, rootWnd,
- _NET_SUPPORTED, 0, UINT_MAX,
+ _NET_SUPPORTED, 0, LONG_MAX,
False, XA_ATOM, &type, &format, &natoms,
&after, (unsigned char **)&atoms);
if ( type != XA_ATOM || atoms == NULL )
False, XA_ATOM, &type, &format, &natoms,
&after, (unsigned char **)&atoms);
if ( type != XA_ATOM || atoms == NULL )
XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
PropModeReplace, (unsigned char *) &data, lng);
XChangeProperty(display, w, _NET_WM_WINDOW_TYPE, XA_ATOM, 32,
PropModeReplace, (unsigned char *) &data, lng);
wxWMspecSetState(display, rootWnd, w,
fullscreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE,
_NET_WM_STATE_STAYS_ON_TOP);
wxWMspecSetState(display, rootWnd, w,
fullscreen ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE,
_NET_WM_STATE_STAYS_ON_TOP);
XMoveResizeWindow(display, w,
origRect->x, origRect->y,
origRect->width, origRect->height);
XMoveResizeWindow(display, w,
origRect->x, origRect->y,
origRect->width, origRect->height);