summaryrefslogtreecommitdiffstats
path: root/konsole/konsole/TEWidget.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2016-03-14 17:47:44 +0100
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-03-14 17:47:44 +0100
commit1c64345fe4da851982f69ebf6e92bc88cebbad46 (patch)
treed46116eaa873e5eb06cf97f665973cca07ec6905 /konsole/konsole/TEWidget.h
parentab959b43ca0d41104fc828e0a0b57cc8a6c5108c (diff)
downloadtdebase-1c64345fe4da851982f69ebf6e92bc88cebbad46.tar.gz
tdebase-1c64345fe4da851982f69ebf6e92bc88cebbad46.zip
Konsole : added support for mouse wheel events in the alternate screen. This allows scrolling within vim, less and similar applications.
This resolves bug 2597. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'konsole/konsole/TEWidget.h')
-rw-r--r--konsole/konsole/TEWidget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/konsole/konsole/TEWidget.h b/konsole/konsole/TEWidget.h
index 2baa2531c..967896082 100644
--- a/konsole/konsole/TEWidget.h
+++ b/konsole/konsole/TEWidget.h
@@ -32,6 +32,7 @@
#include <tdepopupmenu.h>
#include "TECommon.h"
+#include "TEScreen.h"
extern unsigned short vt100_graphics[32];
@@ -142,6 +143,8 @@ public:
void setRim(int rim) { rimX=rim; rimY=rim; }
+ void setScreen(int num, TEScreen *scr) { screen_num = num & 0x01; screen = scr; }
+
public slots:
void setSelectionEnd();
@@ -241,6 +244,10 @@ private:
int bX; // offset
int bY; // offset
+ // Required to handle mouse wheel events correctly in all cases
+ int screen_num; // Screen number (0 or 1)
+ TEScreen *screen; // Pointer to current screen. No ownership!!
+
int lines;
int columns;
int contentHeight;