>>>> No educated bug report, but just now I tried to 
>>>> coppy/paste some text from OS X Mail to my app 
>>>> running GTXWC, and the app just hung with 100% 
>>>> CPU consumption.
> 
> this is a long shot, but.
> 
> is this even supposed to work? i do not know the level of integration 
> of x11 in osx, but there could be problems (there certainly have been 
> in the past, according to my friend google).
> 
> can you copy and paste between other x11 apps and native apps? say, 
> something like abiword and whatever-notepad-is-on-osx (but anyhow do 
> not use xterm and terminal.app for these tests). you should try 
> selecting (with the mouse, just selecting, nothing else) in abiword, 
> and pasting in $notepad; selecting and edit->copy in abiword, pasting 
> in $notepad.

Yes of course. It used to work most of the time.
I'm narrowing it down to my own code now and it 
seems Harbour is not at fault here, now I have 
to investigate a little bit why such didn't happen 
on win. More in another mail soon.

> this copy-paste thing in x11 is pretty much unlike anything else. 
> there are two places something can end up, a "primary" selection (this 
> gets stuff if you select text in an xterm, for example -- this is 
> sort of an implicit buffer), and a "clipboard" selection (this gets 
> stuff if you explicitly copy in something, by means of edit->copy in 
> an application). far as i can tell, gtxwc plays it safe and always 
> updates both selections (this does seem to work well), so it could 
> well be an integration issue on osx? trying it with an independent x 
> app could reveal what might be wrong.
> 
> there's a very condensed page about this whole business at
> 
> http://www.jwz.org/doc/x-cut-and-paste.html
> 
>>> anyway, if seems that XWC_DEBUG activates a whole lot of 
>>> clipboard-related debug stuff, do you get any clue with that?
>> 
>> I didn't try that yet, for that I'll need to rebuild 
>> everything, which is not option these days.
> 
> turns out it doesn't worth it without some more surgery. with 
> XWC_DEBUG, it just gets so overly verbose no way to cherrypick the 
> relevant piece anyway :)

As it turns, problem isn't that deep anyway.

>>> (how is copy-pasting w/ xwc supposed to work? just like any other x 
>>> app i'd like to hope but still asking, point mouse, click, hold/point 
>>> mouse, hit middle button?)
>> 
>> This application use hb_gtInfo( HB_GTI_CLIPBOARDDATA ) to 
>> copy and paste on all platforms/GTs. It works alright in 
>> GTWIN and GTWVT.
> 
> this seems to be working fine on linux, well almost. this (as far as i 
> can tell) seems intentional in gtxwc.c:3072, but it's as if the 
> selections were cleared by this as well (so anything i have in primary 
> when an xwc app starts, hb_gtInfo( HB_GTI_CLIPBOARDDATA ) will return 
> empty -- this is somewhat surprising, but its not to say this is a 
> huge problem or something).

Hm, I didn't check this, but it'd be good behavior 
if a Harbour app could pick what was already placed 
on clipboard before its start. Could be annoying for 
users, since apps usually don't have such limitations.

Brgds,
Viktor



_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to