Share

NEdit

Tracker: Bugs

5 right mouse button sensitive to modifiers - ID: 2020094
Last Update: Comment added ( tringali )

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.


David Mathog ( mathog ) - 2008-07-17 00:00

5

Open

None

Nobody/Anonymous

None

release

Public


Comments ( 3 )




Date: 2008-07-17 17:31
Sender: tringaliProject Admin


Oh, we've tried that ages ago. IIRC, the problem is the library code in
Motif registers a server-side grab with the wrong modifiers. Since it's
server-side, the event never comes in for us to filter it out. If you have
patch that works, we'll be all over it!


Date: 2008-07-17 15:39
Sender: mathog


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.


Date: 2008-07-17 14:48
Sender: tringaliProject Admin


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.


Log in to comment.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
artifact_group_id None 2008-07-17 14:48 tringali