~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shift-click is equivalent to middle-click. This is mostly for
[sgt/puzzles]
/
gtk.c
diff --git
a/gtk.c
b/gtk.c
index
b69e95d
..
8a26730
100644
(file)
--- a/
gtk.c
+++ b/
gtk.c
@@
-181,10
+181,10
@@
static gint button_event(GtkWidget *widget, GdkEventButton *event,
if (event->type != GDK_BUTTON_PRESS)
return TRUE;
if (event->type != GDK_BUTTON_PRESS)
return TRUE;
- if (event->button == 1)
- button = LEFT_BUTTON;
- else if (event->button == 2)
+ if (event->button == 2 || (event->state & GDK_SHIFT_MASK))
button = MIDDLE_BUTTON;
button = MIDDLE_BUTTON;
+ else if (event->button == 1)
+ button = LEFT_BUTTON;
else if (event->button == 3)
button = RIGHT_BUTTON;
else
else if (event->button == 3)
button = RIGHT_BUTTON;
else