added middle/rightclick on slitclient-menu-items to move the client up/down in the slit

This commit is contained in:
mathias 2004-12-02 15:30:59 +00:00
parent de2f362c3d
commit b15315445d

View file

@ -177,9 +177,9 @@ public:
return m_client.visible();
}
void click(int button, int time) {
if (button == 4) { // wheel up
if (button == 4 || button == 2) { // wheel up
m_slit.clientUp(&m_client);
} else if (button == 5) { // wheel down
} else if (button == 5 || button == 3) { // wheel down
m_slit.clientDown(&m_client);
} else {
m_client.setVisible(!m_client.visible());