x11: Handle Mouse scroll wheel events

This commit is contained in:
John Carlson
2018-08-12 23:17:55 -04:00
parent d54d348cc4
commit 7a2f7130dd

View File

@@ -104,6 +104,12 @@ static int x11_handler(int fd) {
case Button3:
button = BUTTON_RIGHT;
break;
case Button4:
LiSendScrollEvent(1);
break;
case Button5:
LiSendScrollEvent(-1);
break;
}
if (button != 0)