From 447842ee4806639605c02c14babb36e147667a35 Mon Sep 17 00:00:00 2001 From: Tim Smart Date: Wed, 18 Jan 2012 19:40:38 +1300 Subject: [PATCH] Use selection_make instead of selection_grab. For some reason selection_grab was not working with my urxvt setup, however the selection_beg, selection_end and selection_make trio worked fine. Signed-off-by: Tim Smart --- url-select | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/url-select b/url-select index 7b07b20..7f44fcd 100644 --- a/url-select +++ b/url-select @@ -101,8 +101,12 @@ sub key_press { $self->exec_async(@{$self->{browser}}, ${$self->{found}[$self->{n}]}[4]); deactivate($self) unless $char eq 'o'; } elsif ($char eq 'y') { - $self->selection(${$self->{found}[$self->{n}]}[4]); - $self->selection_grab($event->{time}); + my $found = $self->{found}[$self->{n}]; + $self->selection_beg(${$found}[0], ${$found}[1]); + $self->selection_end(${$found}[2], ${$found}[3]); + $self->selection_make($event->{time}); + $self->selection_beg(1, 0); + $self->selection_end(1, 0); deactivate($self); } elsif ($char eq 'k' || $keysym == 0xff52 || $keysym == 0xff51) { select_next($self, -1);