forked from pyrite-dev/milsko
map window points
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@58 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
e7582cd646
commit
29b344f831
6 changed files with 61 additions and 10 deletions
|
|
@ -105,7 +105,7 @@ int MwLLPending(MwLL handle) {
|
|||
|
||||
void MwLLNextEvent(MwLL handle) {
|
||||
XEvent ev;
|
||||
if(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) {
|
||||
while(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) {
|
||||
if(ev.type == Expose) {
|
||||
MwLLDispatch(handle, draw);
|
||||
} else if(ev.type == ButtonPress) {
|
||||
|
|
@ -118,6 +118,8 @@ void MwLLNextEvent(MwLL handle) {
|
|||
MwLLDispatch(handle, up);
|
||||
MwLLDispatch(handle, draw);
|
||||
}
|
||||
} else if(ev.type == ConfigureNotify) {
|
||||
MwLLDispatch(handle, resize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue