several wayland fixes, new util function MwIsUTF8 so that both backends can consistently check if something is a valid utf8
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
87c870a6c0
commit
4d694bba49
5 changed files with 182 additions and 66 deletions
|
|
@ -311,10 +311,6 @@ struct _MwLLWaylandTopLevel {
|
|||
struct xdg_toplevel_listener xdg_toplevel_listener;
|
||||
struct xdg_surface_listener xdg_surface_listener;
|
||||
|
||||
struct xkb_context* xkb_context;
|
||||
struct xkb_keymap* xkb_keymap;
|
||||
struct xkb_state* xkb_state;
|
||||
|
||||
MwBool compositor_created;
|
||||
MwBool xdg_wm_base_created;
|
||||
MwBool xdg_surface_created;
|
||||
|
|
@ -416,6 +412,10 @@ struct _MwLLWayland {
|
|||
MwBool has_decorations;
|
||||
char title[255];
|
||||
|
||||
struct xkb_context* xkb_context;
|
||||
struct xkb_keymap* xkb_keymap;
|
||||
struct xkb_state* xkb_state;
|
||||
|
||||
struct wl_display* display;
|
||||
struct wl_registry* registry;
|
||||
struct wl_compositor* compositor;
|
||||
|
|
@ -475,6 +475,8 @@ struct _MwLLWayland {
|
|||
MwBool force_render;
|
||||
MwBool did_event_loop_early;
|
||||
|
||||
MwBool dispatching_resize;
|
||||
|
||||
struct _MwLLWaylandShmBuffer framebuffer;
|
||||
struct _MwLLWaylandShmBuffer backbuffer;
|
||||
struct _MwLLWaylandShmBuffer cursor;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,13 @@ MWDECL void MwStringSize(char* out, MwOffset size);
|
|||
*/
|
||||
MWDECL void MwStringTime(char* out, time_t t);
|
||||
|
||||
/*!
|
||||
* @brief Check if the given key is UTF8
|
||||
* @param key Input
|
||||
* @return whether its utf8
|
||||
*/
|
||||
MWDECL MwBool MwIsKeyUTF8(MwU32 key);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue