From c269bce77de9e94473cf1e1200f2349e2bbc9549 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 23 Oct 2009 13:09:23 +0000 Subject: [PATCH] 2009-10-23 15:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/gtxwc/gtxwc.c ! fixed clipboard property change in 64bit builds --- harbour/ChangeLog | 4 ++++ harbour/src/rtl/gtxwc/gtxwc.c | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 4bcbd41a09..e5d08c4e6c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-10-23 15:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/gtxwc/gtxwc.c + ! fixed clipboard property change in 64bit builds + 2009-10-23 13:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbgtcore.c * harbour/include/hbgtinfo.ch diff --git a/harbour/src/rtl/gtxwc/gtxwc.c b/harbour/src/rtl/gtxwc/gtxwc.c index 72daa160a6..b5c8dcff3c 100644 --- a/harbour/src/rtl/gtxwc/gtxwc.c +++ b/harbour/src/rtl/gtxwc/gtxwc.c @@ -2215,6 +2215,7 @@ static void hb_gt_xwc_WndProc( PXWND_DEF wnd, XEvent *evt ) else if( evt->xselection.target == s_atomTargets && text.format == 32 ) { Atom aValue; + #ifdef XWC_DEBUG printf("text.nitems=%ld, text.format=%d\r\n", text.nitems, text.format); fflush(stdout); #endif @@ -2226,7 +2227,11 @@ static void hb_gt_xwc_WndProc( PXWND_DEF wnd, XEvent *evt ) else if( aValue == s_atomString && aNextRequest == None ) aNextRequest = s_atomString; #ifdef XWC_DEBUG - printf("%ld, %8lx (%s)\r\n", nItem, aValue, XGetAtomName(wnd->dpy, aValue));fflush(stdout); + if( aValue ) + printf("%ld, %8lx (%s)\r\n", nItem, aValue, XGetAtomName(wnd->dpy, aValue)); + else + printf("%ld, %8lx (NULL)\r\n", nItem, aValue); + fflush(stdout); #endif } } @@ -2258,7 +2263,7 @@ static void hb_gt_xwc_WndProc( PXWND_DEF wnd, XEvent *evt ) if ( req->target == s_atomTimestamp ) { XChangeProperty( wnd->dpy, req->requestor, req->property, - s_atomInteger, 8 * sizeof( Time ), PropModeReplace, + s_atomInteger, /* 8 * sizeof( Time ) */ 32, PropModeReplace, ( unsigned char * ) &wnd->ClipboardTime, 1 ); } else if ( req->target == s_atomTargets ) @@ -2267,7 +2272,7 @@ static void hb_gt_xwc_WndProc( PXWND_DEF wnd, XEvent *evt ) s_atomString, s_atomUTF8String, s_atomCompoundText, s_atomText }; XChangeProperty( wnd->dpy, req->requestor, req->property, - s_atomAtom, 8 * sizeof( Atom ), PropModeReplace, + s_atomAtom, /* 8 * sizeof( Atom ) */ 32, PropModeReplace, ( unsigned char * ) aProp, sizeof( aProp ) / sizeof( Atom ) ); } else if( req->target == s_atomString )