Bugs item #2020094, was opened at 2008-07-17 00:00
Message generated for change (Comment added) made by mathog
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=2020094&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: release
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: David Mathog (mathog)
Assigned to: Nobody/Anonymous (nobody)
Summary: right mouse button sensitive to modifiers

Initial Comment:
The right mouse button is not recognized if numlock or caps-lock are set, nor 
if ctrl, shift, or alt are present.  This was observed on an X11 server on 
Mandriva 2008.1 using either a static binary or a newly built dynamic binary 
linked to openmotif 2.3.0.  However, the statically linked version that comes 
with Mandriva, which is linked to lesstif 2.1, is NOT sensitive to the state of 
the num lock and caps lock.

----------------------------------------------------------------------

Comment By: David Mathog (mathog)
Date: 2008-07-17 15:39

Message:
Logged In: YES 
user_id=626407
Originator: YES

Well, using xev the modifiers are between 1 and 10 hex, but the primary
bit patterns for state are 0x (for button down) and 400x (for button
release).  I don't know where this chunk of code is, but something like
this would implement the desired logic:

if ( event == BUTTON3) {
  if(state & 0x400){  /* button 3 release action */ }
  else {              /* button 3 press action   */ }
}

Of course this assumes that there is a place in the code now where "event"
and "state" are available in this form.  Perhaps with the callbacks in
Motif this is an invalid assumption.

----------------------------------------------------------------------

Comment By: Scott Tringali (tringali)
Date: 2008-07-17 14:48

Message:
Logged In: YES 
user_id=11321
Originator: NO

This is a pretty good observation. It's is a bug as old as time in the
original Motif. We had tried to work around it in the past, but the
workaround could cause the X server to hang (a grab without an ungrab) and
that was unacceptable. A better workaround would help.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=2020094&group_id=11005
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to