dtstyle: make the style manager recognize wheel mouse correctly.
This commit is contained in:
@@ -318,10 +318,8 @@ build_mouseDialog( Widget shell )
|
|||||||
nmap);
|
nmap);
|
||||||
if ( mouse.numButtons == 2 )
|
if ( mouse.numButtons == 2 )
|
||||||
mouse.type = POINTER2B;
|
mouse.type = POINTER2B;
|
||||||
else if ( mouse.numButtons == 3 || mouse.numButtons == 5 )
|
|
||||||
mouse.type = POINTER3B;
|
|
||||||
else
|
else
|
||||||
mouse.type = 99;
|
mouse.type = POINTER3B;
|
||||||
/* choose a bitmap based on button mapping *
|
/* choose a bitmap based on button mapping *
|
||||||
* and number of buttons */
|
* and number of buttons */
|
||||||
|
|
||||||
@@ -1304,8 +1302,6 @@ reverseToggleCB(
|
|||||||
mouse.pixmapSel = mouse.b3_revSel;
|
mouse.pixmapSel = mouse.b3_revSel;
|
||||||
for(i = 0, j = 3; i < 3; i++, j--)
|
for(i = 0, j = 3; i < 3; i++, j--)
|
||||||
mouse.new_map_return[i] = j;
|
mouse.new_map_return[i] = j;
|
||||||
mouse.new_map_return[3] = 5;
|
|
||||||
mouse.new_map_return[4] = 4;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1316,8 +1312,6 @@ reverseToggleCB(
|
|||||||
mouse.pixmapSel = mouse.b3Sel;
|
mouse.pixmapSel = mouse.b3Sel;
|
||||||
for(i = 0, j = 1; i < 3; i++, j++)
|
for(i = 0, j = 1; i < 3; i++, j++)
|
||||||
mouse.new_map_return[i] = j;
|
mouse.new_map_return[i] = j;
|
||||||
mouse.new_map_return[3] = 4;
|
|
||||||
mouse.new_map_return[4] = 5;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else /* 2B mouse */
|
else /* 2B mouse */
|
||||||
|
|||||||
Reference in New Issue
Block a user