more wayland work

This commit is contained in:
IoIxD 2025-12-01 19:12:49 -07:00
commit 37fe636c75
10 changed files with 152 additions and 78 deletions

View file

@ -198,8 +198,6 @@ MWDECL void (*MwLLMakePopup)(MwLL handle, MwLL parent);
MWDECL void (*MwLLBeginStateChange)(MwLL handle);
MWDECL void (*MwLLEndStateChange)(MwLL handle);
MWDECL void (*MwLLSetBackground)(MwLL handle, MwLLColor color);
MWDECL void (*MwLLFocus)(MwLL handle);
MWDECL void (*MwLLGrabPointer)(MwLL handle, int toggle);

View file

@ -7,6 +7,7 @@
#ifndef __MW_LOWLEVEL_WAYLAND_H__
#define __MW_LOWLEVEL_WAYLAND_H__
#include "Mw/BaseTypes.h"
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/LowLevel.h>
@ -63,6 +64,9 @@ struct _MwLLWayland {
struct wl_shm* shm;
struct wl_registry_listener registry_listener;
MwU8* mapped_buffer;
int mapped_buffer_size;
struct {
const char* key;
wl_setup_func* value;
@ -74,6 +78,7 @@ struct _MwLLWayland {
}* wl_protocol_map;
MwBool configured;
MwBool force_redraw;
MwU32 x, y, ww, wh;
};