-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
bugfix: fix keyboard not working on mobile emulator mode #5697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
bugfix: fix keyboard not working on mobile emulator mode #5697
Conversation
|
Yes it seems like a good approach thanks. Though I think the X methods should not be exported. |
Jacalz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This looks good and works well. However; do get warnings about XKeycodeToKeysym being deprecated. Can anything else be used instead?
# fyne.io/fyne/v2/internal/driver/mobile/app
x11.c:154:13: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations]
/usr/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here
/usr/include/X11/Xfuncproto.h:136:40: note: expanded from macro '_X_DEPRECATED'
x11.c:158:13: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations]
/usr/include/X11/Xlib.h:1682:1: note: 'XKeycodeToKeysym' has been explicitly marked deprecated here
/usr/include/X11/Xfuncproto.h:136:40: note: expanded from macro '_X_DEPRECATED'
I think my comment still stands though |
Why not? They are being called from the C-code as far as I can see |
Just for clarity, and for example, the function |
Ah, I see. I think we were talking about different kinds of exported. I thought you meant the two functions which were exported to the C code., |
Ah yes I see the ambiguity. However I don't think the X... method(s) are exposed to C - only publicly in Go. Which it shouldn't be. |

Description:
Fixes #(issue)
Keyboard not working on mobile emulator mode (Linux).
Checklist: