aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Preinfalk <martin.preinfalk@posteo.at>2024-12-12 10:18:10 +0100
committerDavid Robillard <d@drobilla.net>2025-01-21 13:28:12 -0500
commite2f89dffb989f04b3e68894e3d62272bc3400d33 (patch)
tree697175ae560219d81ea62c6eed6ed2f27b2d578b /src
parent8282e76b8a74c350bf6025f7b933b6ab8b58bb34 (diff)
downloadpugl-e2f89dffb989f04b3e68894e3d62272bc3400d33.tar.gz
pugl-e2f89dffb989f04b3e68894e3d62272bc3400d33.tar.bz2
pugl-e2f89dffb989f04b3e68894e3d62272bc3400d33.zip
X11: Generate text events for keypad symbols
Diffstat (limited to 'src')
-rw-r--r--src/x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index 1756763..0513280 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -894,7 +894,8 @@ translateKey(PuglView* const view, XEvent* const xevent, PuglEvent* const event)
event->key.key = (PuglKey)puglDecodeUTF8((const uint8_t*)ustr);
}
- if (xevent->type == KeyPress && !filter && !special && view->impl->xic) {
+ if (xevent->type == KeyPress && !filter && !(special && ufound <= 0) &&
+ view->impl->xic) {
// Lookup shifted key for possible text event
xevent->xkey.state = state;