git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@813 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-25 20:21:15 +00:00
parent 8a02b3d31b
commit f2bbadf62b
8 changed files with 41 additions and 3 deletions

View File

@@ -990,6 +990,17 @@ static void MwLLMakeToolWindowImpl(MwLL handle) {
XChangeProperty(handle->x11.display, handle->x11.window, wndtype, XA_ATOM, 32, PropModeReplace, (unsigned char*)&wndmenu, 1);
}
static void MwLLGetCursorCoordImpl(MwLL handle, MwPoint* point) {
Window root, child;
int rx, ry, wx, wy;
unsigned int m;
XQueryPointer(handle->x11.display, DefaultRootWindow(handle->x11.display), &root, &child, &rx, &ry, &wx, &wy, &m);
point->x = rx;
point->y = ry;
}
static void MwLLBeginStateChangeImpl(MwLL handle) {
MwLLShow(handle, 0);
}