menu widget

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@132 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-02 02:50:28 +00:00
parent 81c47a9733
commit ef4ce2a5f3
6 changed files with 42 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
/* $Id$ */
#include <Mw/Milsko.h>
static unsigned long mask = ExposureMask | StructureNotifyMask | ButtonPressMask | ButtonReleaseMask;
static unsigned long mask = ExposureMask | StructureNotifyMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask | EnterWindowMask;
static void create_pixmap(MwLL handle) {
XWindowAttributes attr;
@@ -175,6 +175,12 @@ void MwLLNextEvent(MwLL handle) {
if(ev.xclient.data.l[0] == (long)handle->wm_delete) {
MwLLDispatch(handle, close, NULL);
}
} else if(ev.type == MotionNotify) {
MwPoint p;
p.x = ev.xmotion.x;
p.y = ev.xmotion.y;
MwLLDispatch(handle, move, &p);
}
if(render) {
int x, y;