projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c7f63aa
)
Fix click-click moving with -monoMouse
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 13 Nov 2014 19:23:57 +0000 (20:23 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 7 May 2015 18:53:31 +0000 (20:53 +0200)
A to-click should never be interpreted as button 3.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
c4c5bf3
..
f969aba
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-7388,7
+7388,7
@@
LeftClick (ClickType clickType, int xPix, int yPix)
x = BOARD_WIDTH - 1 - x;
}
- if(appData.monoMouse && gameMode == EditPosition && clickType == Press && boards[currentMove][y][x] == EmptySquare) {
+ if(appData.monoMouse && gameMode == EditPosition && fromX < 0 && clickType == Press && boards[currentMove][y][x] == EmptySquare) {
static int dummy;
RightClick(clickType, xPix, yPix, &dummy, &dummy);
right = TRUE;