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
/
flipflop.c
diff --git
a/hacks/glx/flipflop.c
b/hacks/glx/flipflop.c
index 1aadee77de347218b97282688a1375577650b5af..af671ca802aa3f52899c153b2ea1f91de5accd95 100644
(file)
--- a/
hacks/glx/flipflop.c
+++ b/
hacks/glx/flipflop.c
@@
-146,7
+146,7
@@
flipflop_handle_event (ModeInfo *mi, XEvent *event)
Flipflopcreen *c = &qs[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
Flipflopcreen *c = &qs[MI_SCREEN(mi)];
if (event->xany.type == ButtonPress &&
- event->xbutton.button
&
Button1)
+ event->xbutton.button
==
Button1)
{
c->button_down_p = True;
gltrackball_start (c->trackball,
{
c->button_down_p = True;
gltrackball_start (c->trackball,
@@
-155,11
+155,19
@@
flipflop_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)
{
c->button_down_p = False;
return True;
}
{
c->button_down_p = False;
return True;
}
+ else if (event->xany.type == ButtonPress &&
+ (event->xbutton.button == Button4 ||
+ event->xbutton.button == Button5))
+ {
+ gltrackball_mousewheel (c->trackball, event->xbutton.button, 5,
+ !event->xbutton.state);
+ return True;
+ }
else if (event->xany.type == MotionNotify &&
c->button_down_p)
{
else if (event->xany.type == MotionNotify &&
c->button_down_p)
{