draw button
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@32 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
0bc58045ae
commit
4597519598
5 changed files with 33 additions and 6 deletions
10
src/x11.c
10
src/x11.c
|
|
@ -110,6 +110,16 @@ void MilskoLLNextEvent(MilskoLL handle) {
|
|||
if(XCheckWindowEvent(handle->display, handle->window, mask, &ev)) {
|
||||
if(ev.type == Expose) {
|
||||
MilskoLLDispatch(handle, draw);
|
||||
} else if(ev.type == ButtonPress) {
|
||||
if(ev.xbutton.button == Button1) {
|
||||
MilskoLLDispatch(handle, down);
|
||||
MilskoLLDispatch(handle, draw);
|
||||
}
|
||||
} else if(ev.type == ButtonRelease) {
|
||||
if(ev.xbutton.button == Button1) {
|
||||
MilskoLLDispatch(handle, up);
|
||||
MilskoLLDispatch(handle, draw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue