mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-21 00:24:07 +00:00
ultra optimization
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@781 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -325,9 +325,13 @@ static void MwLLGetXYWHImpl(MwLL handle, int* x, int* y, unsigned int* w, unsign
|
||||
}
|
||||
|
||||
static void MwLLSetXYImpl(MwLL handle, int x, int y) {
|
||||
XSizeHints sh;
|
||||
long r;
|
||||
XWindowChanges xwc;
|
||||
XSizeHints sh;
|
||||
long r;
|
||||
XWindowChanges xwc;
|
||||
XWindowAttributes xwa;
|
||||
|
||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
||||
if(xwa.x == x && xwa.y == y) return;
|
||||
|
||||
sh.flags = 0;
|
||||
XGetWMNormalHints(handle->x11.display, handle->x11.window, &sh, &r);
|
||||
@@ -349,9 +353,14 @@ static void MwLLSetXYImpl(MwLL handle, int x, int y) {
|
||||
}
|
||||
|
||||
static void MwLLSetWHImpl(MwLL handle, int w, int h) {
|
||||
XSizeHints sh;
|
||||
long r;
|
||||
XWindowChanges xwc;
|
||||
XSizeHints sh;
|
||||
long r;
|
||||
XWindowChanges xwc;
|
||||
XWindowAttributes xwa;
|
||||
|
||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
||||
if(xwa.width == w && xwa.height == h) return;
|
||||
printf("%d %d %d %d\n", xwa.width, xwa.height, w, h);
|
||||
|
||||
sh.flags = 0;
|
||||
XGetWMNormalHints(handle->x11.display, handle->x11.window, &sh, &r);
|
||||
|
||||
Reference in New Issue
Block a user