discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reforming gpbs


From: Fred Kiefer
Subject: Re: reforming gpbs
Date: Mon, 04 Aug 2003 02:30:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

Using SECONDARY is clearly wrong as stated in:

http://www.freedesktop.org/standards/clipboards-spec/clipboards.txt

What we should do is switch the use of PRIMARY and CLIPBOARD as already stated in the file xpbs.m:

/*
       * According to the new open desktop specification these
       * two pasteboards should be switched around. That is,
       * general should be XA_CLIPBOARD and selection
       * XA_PRIMARY. The problem is that most X programs still
       * use the old way. So we do the same for now.
*/

Maybe we should add a new default setting for this or use some sort of environment check.

Cheers
Fred

Aredridel wrote:
While we are talking about reforming gpbs, I would like to ask something
that's been bothering me for some time: Does GNUstep handle selection and cut
buffers in a "proper" way?


I think it does not.  It does appear to get the selection and cut buffer
backwards.

One thing that, I think, would make selections more useful is actually
using SECONDARY:

If the destination of the paste-from-selection (middle-mouse) event is
within the boundary of the PRIMARY selection, then replace the selection
with the contents of SECONDARY if it exists.  If your app loses PRIMARY,
put that into SECONDARY instead.

Nice and simple, and would make mousing cut-and-paste much more useful
-- you could actually "paste over" something without reaching for the
keyboard.  In the URL bar of a browser, this is particularly relevant.


Anyway, I have noticed very strange behaviors when going back and forth
between GNUstep and GNOME or KDE apps. It seems that when going from GNUstep
to a KDE or GNOME app, the selection and cut buffer get switched around.
Middle mouse pastes whatever was last copied, when it should paste whatever
was last selected; the "paste" operation pastes whatever was last selected,
instead of whatever was last copied.


I too see this.


So, I am hoping that someone knowledgeable about both GNUstep and X
selection/cut buffer behavior could take a look at the code and see if it is
in fact broken, as it seems to be, and hopefully fix it :)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]