diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-14 13:55:02 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-14 14:04:16 +0300 |
commit | 64e196422e85e5177e3b30d2646fc6e9c34e6628 (patch) | |
tree | 8de610706bbb48528c104f332e451ba3d1562380 /intern | |
parent | 7fa7722350b471e3ce6b369137c5b41574a4bda2 (diff) |
GHOST/X11: Quiet warning about key-release events having their utf8 set
Quiet warning from [0], no functional change as the this information
was always ignored.
Key release events shouldn't have associated text, this was cleared
for wmEvent's, so there is no reason to pass it from GHOST.
[0]: d6fef73ef110eb43756b7b87c2cba80abae3b39f
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 5e549b54afd..6b28c271059 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -1194,6 +1194,11 @@ void GHOST_SystemX11::processEvent(XEvent *xe) } #endif + if (type != GHOST_kEventKeyDown) { + ascii = 0; + utf8_buf = nullptr; + } + g_event = new GHOST_EventKey( getMilliSeconds(), type, window, gkey, ascii, utf8_buf, is_repeat); |