forked from pyrite-dev/milsko
maybe
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@773 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
57dd0fdcf6
commit
f1abb4ea03
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ static void wait_unmap(MwLL handle, int sync) {
|
||||||
XWindowAttributes xwa;
|
XWindowAttributes xwa;
|
||||||
|
|
||||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
||||||
if(xwa.map_state == IsViewable) {
|
if(xwa.map_state != IsUnmapped) {
|
||||||
XSync(handle->x11.display, False);
|
XSync(handle->x11.display, False);
|
||||||
|
|
||||||
XUnmapWindow(handle->x11.display, handle->x11.window);
|
XUnmapWindow(handle->x11.display, handle->x11.window);
|
||||||
|
|
@ -102,7 +102,7 @@ static void wait_unmap(MwLL handle, int sync) {
|
||||||
do {
|
do {
|
||||||
XSync(handle->x11.display, False);
|
XSync(handle->x11.display, False);
|
||||||
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
XGetWindowAttributes(handle->x11.display, handle->x11.window, &xwa);
|
||||||
} while(xwa.map_state == IsViewable);
|
} while(xwa.map_state != IsUnmapped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue