projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.20.tar.gz
[xscreensaver]
/
hacks
/
glx
/
moebius.c
diff --git
a/hacks/glx/moebius.c
b/hacks/glx/moebius.c
index 9052f4bcc6c3e83ff08af3e20484ae960bd5ad5e..d05e8c65e3149167c41c11316eff4e921f518e34 100644
(file)
--- a/
hacks/glx/moebius.c
+++ b/
hacks/glx/moebius.c
@@
-643,7
+643,7
@@
moebius_handle_event (ModeInfo *mi, XEvent *event)
moebiusstruct *mp = &moebius[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
moebiusstruct *mp = &moebius[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
- event->xbutton.button
&
Button1)
+ event->xbutton.button
==
Button1)
{
mp->button_down_p = True;
gltrackball_start (mp->trackball,
{
mp->button_down_p = True;
gltrackball_start (mp->trackball,
@@
-652,11
+652,19
@@
moebius_handle_event (ModeInfo *mi, XEvent *event)
return True;
}
else if (event->xany.type == ButtonRelease &&
return True;
}
else if (event->xany.type == ButtonRelease &&
- event->xbutton.button
&
Button1)
+ event->xbutton.button
==
Button1)
{
mp->button_down_p = False;
return True;
}
{
mp->button_down_p = False;
return True;
}
+ else if (event->xany.type == ButtonPress &&
+ (event->xbutton.button == Button4 ||
+ event->xbutton.button == Button5))
+ {
+ gltrackball_mousewheel (mp->trackball, event->xbutton.button, 10,
+ !!event->xbutton.state);
+ return True;
+ }
else if (event->xany.type == MotionNotify &&
mp->button_down_p)
{
else if (event->xany.type == MotionNotify &&
mp->button_down_p)
{