From 16dd83bc4e59b7b8ac26c3c7a2c6afc08beb157d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 6 Apr 2011 17:56:00 +0200 Subject: [PATCH] Support diagonal navigation in mouse emulation --- workspace.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 9dc9012b39..b4f6fa46a2 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2014,6 +2014,26 @@ bool Workspace::keyPressMouseEmulation(XKeyEvent& ev) case XK_KP_Down: pos.ry() += delta; break; + case XK_Home: + case XK_KP_Home: + pos.rx() -= delta; + pos.ry() -= delta; + break; + case XK_Page_Up: + case XK_KP_Page_Up: + pos.rx() += delta; + pos.ry() -= delta; + break; + case XK_Page_Down: + case XK_KP_Page_Down: + pos.rx() += delta; + pos.ry() += delta; + break; + case XK_End: + case XK_KP_End: + pos.rx() -= delta; + pos.ry() += delta; + break; case XK_F1: if (!mouse_emulation_state) mouse_emulation_window = getMouseEmulationWindow();