Well without a full working example to play with, I just guess. :-) I wonder if in your xorg.conf ( or X11config) there are settings for the Button-3 timeout but maybe I wrong.

Anyways, the only thing I can think off is this old post by graff, maybe you can adapt it to the right click. I tried changing it to button-3, but I needed to select the word first. Apparently the entry dosn't handle double right click....or it's the same problem you are talking about?

#!/usr/bin/perl use strict; use Tk; # by graff of perlmonks # The way that works is that the initial "button-1" event # will invoke "Tk::after" to schedule a call to "print_me" # after half a second, but a double-button-1 event will # call "print_me" immediately, with a parameter that makes # it behave in a special way. The logic associated with # that special parameter also has to "cancel" the Tk::after # object that had been scheduled by the button-1 event that # was the first half of the double-click. my $after_id; my $mw = MainWindow->new(); $mw->Label(-text => "Type a phrase in the entry box below")->pack(); $mw->Label(-text => "Then click once to print all of it")->pack(); $mw->Label(-text => "Or double-click to print just one word")->pack(); my $ent = $mw->Entry(-width => 25)->pack(); $ent->bind( "<Double-Button-1>", [\&print_me, "word"] ); $ent->bind( "<Button-1>", sub { $after_id = $ent->after( 500, [\&print_me, $ent] ) } ); MainLoop; sub print_me { my ( $widget, $mode ) = @_; my $content = $widget->get(); if ( $mode eq "word" ) { $widget->afterCancel( $after_id ); my $start = $widget->index( 'sel.first' ); my $length = $widget->index( 'sel.last' ) - $start; print "you double-clicked the word: " . substr( $content, $start, $length), $/; } else { print $content,$/; } }

I'm not really a human, but I play one on earth. flash japh

In reply to Re: Obnoxious Button-3 Binding by zentara
in thread Obnoxious Button-3 Binding by critically_damped

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.