1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-14 12:12:26 +00:00

dtstyle: make the style manager recognize wheel mouse correctly.

This commit is contained in:
hyousatsu 2023-06-11 05:51:29 +00:00
parent ece21debbb
commit 549b759c66

View file

@ -318,10 +318,8 @@ build_mouseDialog( Widget shell )
nmap);
if ( mouse.numButtons == 2 )
mouse.type = POINTER2B;
else if ( mouse.numButtons == 3 || mouse.numButtons == 5 )
mouse.type = POINTER3B;
else
mouse.type = 99;
mouse.type = POINTER3B;
/* choose a bitmap based on button mapping *
* and number of buttons */
@ -1304,8 +1302,6 @@ reverseToggleCB(
mouse.pixmapSel = mouse.b3_revSel;
for(i = 0, j = 3; i < 3; i++, j--)
mouse.new_map_return[i] = j;
mouse.new_map_return[3] = 5;
mouse.new_map_return[4] = 4;
}
else
{
@ -1316,8 +1312,6 @@ reverseToggleCB(
mouse.pixmapSel = mouse.b3Sel;
for(i = 0, j = 1; i < 3; i++, j++)
mouse.new_map_return[i] = j;
mouse.new_map_return[3] = 4;
mouse.new_map_return[4] = 5;
}
}
else /* 2B mouse */