Discussion:
[surf] clipboard vs. primary
Peter John Hartman
2009-11-03 15:20:05 UTC
Permalink
Hi,

I find that Firefox and perhaps others like to "paste" from the CLIPBOARD
rather than PRIMARY. Hence, in clipboard() in surf.c I have to duplicate
the following line (replacing PRIMARY with CLIPBOARD):

gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), c->linkhover ? c->linkhover : geturi(c), -1)

I'd like to see if we can just add this to vanilla? Is there a reason not
(other than the extra line of code)?

Peter
Anders Andersson
2009-11-04 19:49:44 UTC
Permalink
I've always thought there was something wrong with pasting in Firefox,
maybe this is the reason. I'm not really using surf so I don't know
what the problem is, care to explain?

// Anders


On Tue, Nov 3, 2009 at 4:20 PM, Peter John Hartman
Post by Peter John Hartman
Hi,
I find that Firefox and perhaps others like to "paste" from the CLIPBOARD
rather than PRIMARY.  Hence, in clipboard() in surf.c I have to duplicate
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY),
c->linkhover ? c->linkhover : geturi(c), -1)
I'd like to see if we can just add this to vanilla?  Is there a reason not
(other than the extra line of code)?
Peter
Peter John Hartman
2009-11-04 21:02:35 UTC
Permalink
Hi,

Here's a patch that fixes what I think is a "problem". Others might
disagree. This allows me to paste into firefox the urls which I "yank" in
surf.

Peter
Post by Anders Andersson
I've always thought there was something wrong with pasting in Firefox,
maybe this is the reason. I'm not really using surf so I don't know
what the problem is, care to explain?
// Anders
On Tue, Nov 3, 2009 at 4:20 PM, Peter John Hartman
Post by Peter John Hartman
Hi,
I find that Firefox and perhaps others like to "paste" from the CLIPBOARD
rather than PRIMARY.  Hence, in clipboard() in surf.c I have to duplicate
gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY),
c->linkhover ? c->linkhover : geturi(c), -1)
I'd like to see if we can just add this to vanilla?  Is there a reason not
(other than the extra line of code)?
Peter
Continue reading on narkive:
Loading...