Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37423726
en ru br
ALT Linux repos
S:0.95.2-alt4
5.0: 0.95-alt2
4.1: 0.95-alt2

Group :: System/Libraries
RPM: lesstif

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: lesstif-0.95.0-accelkeys.patch
Download


diff -up lesstif-0.95.0/lib/Xm-2.1/Manager.c.accelkeys lesstif-0.95.0/lib/Xm-2.1/Manager.c
--- lesstif-0.95.0/lib/Xm-2.1/Manager.c.accelkeys	2005-04-02 16:58:11.000000000 +0200
+++ lesstif-0.95.0/lib/Xm-2.1/Manager.c	2007-08-31 00:19:19.000000000 +0200
@@ -1764,7 +1764,8 @@ _XmAcceleratorHandler(Widget w, XtPointe
 	 modifiers" or "these modifiers plus any others" */
 	if (/*MGR_KeyboardList(w)[i].eventType == event->type && */
 	    MGR_KeyboardList(w)[i].key == event->xkey.keycode &&
-	    (MGR_KeyboardList(w)[i].modifiers & event->xkey.state) == MGR_KeyboardList(w)[i].modifiers &&
+	    MGR_KeyboardList(w)[i].modifiers ==
+	        (event->xkey.state & ~(Mod2Mask | LockMask)) &&
 	    MGR_KeyboardList(w)[i].component == comp &&
 	    XtIsManaged(comp))
 	{
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin