matchbox-window-manager/matchbox-window-manager-1.2-keysyms.patch
Troy Dawson 1a5be4b4e7 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/matchbox-window-manager#5e434f33ab73d66f7c39b106d2c61cbf85941eaa
2020-10-20 07:24:16 -07:00

19 lines
523 B
Diff

--- trunk/matchbox-window-manager/src/keys.c 2006/07/19 16:55:26 1361
+++ trunk/matchbox-window-manager/src/keys.c 2007/11/01 12:43:20 1761
@@ -35,10 +35,12 @@
for (keycode = min_kc; keycode <= max_kc; keycode++) {
for (col = 0; (k = XKeycodeToKeysym (w->dpy, keycode, col))
- != NoSymbol; col++)
- if (k == keysym && col == 1) {
+ != NoSymbol; col++) {
+ if (k == keysym && col == 1)
return True;
- }
+ if (k == keysym)
+ break;
+ }
}
return False;
}