fix sloppy focus

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@231 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-08 18:03:46 +00:00
parent 795bb2d03f
commit 7b0173e7c4
18 changed files with 125 additions and 38 deletions

View File

@@ -43,6 +43,7 @@ struct _MwLLHandler {
void (*resize)(MwLL handle, void* data);
void (*close)(MwLL handle, void* data);
void (*move)(MwLL handle, void* data);
void (*key)(MwLL handle, void* data);
};
#ifdef __cplusplus

View File

@@ -14,6 +14,7 @@
#include <sys/types.h>
#include <assert.h>
#include <math.h>
#include <ctype.h>
#ifndef _WIN32
#include <unistd.h>
#include <sys/ipc.h>

View File

@@ -26,6 +26,7 @@ typedef void* MwWidget;
typedef void (*MwHandler)(MwWidget handle);
typedef int (*MwHandler2)(MwWidget handle);
typedef void (*MwHandler3)(MwWidget handle, const char* key);
typedef void (*MwHandler4)(MwWidget handle, int key);
typedef void (*MwUserHandler)(MwWidget handle, void* user_data, void* call_data);
typedef void (*MwErrorHandler)(int code, const char* message, void* user_data);
@@ -118,6 +119,12 @@ struct _MwClass {
MwHandler mouse_move;
MwHandler mouse_up;
MwHandler mouse_down;
MwHandler4 key;
void* reserved1;
void* reserved2;
void* reserved3;
void* reserved4;
void* reserved5;
};
struct _MwFont {