1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-18 20:20:45 +00:00

Allow applications to notify the terminal they use mouse.

This commit is contained in:
Filippo Scognamiglio 2014-08-27 22:55:52 +02:00
parent a0bfe0f77f
commit 3eb836fd81
2 changed files with 4 additions and 9 deletions

View File

@ -200,14 +200,9 @@ void Session::addView(KTerminalDisplay * widget)
// allow emulation to notify view when the foreground process // allow emulation to notify view when the foreground process
// indicates whether or not it is interested in mouse signals // indicates whether or not it is interested in mouse signals
connect( _emulation , SIGNAL(programUsesMouseChanged(bool)) , widget ,
// TODO Disabled since at the moment it is not working properly. SLOT(setUsesMouse(bool)) );
// Remember to reenable that once it' is's working. widget->setUsesMouse( _emulation->programUsesMouse() );
//connect( _emulation , SIGNAL(programUsesMouseChanged(bool)) , widget ,
// SLOT(setUsesMouse(bool)) );
//widget->setUsesMouse( _emulation->programUsesMouse() );
widget->setScreenWindow(_emulation->createWindow()); widget->setScreenWindow(_emulation->createWindow());
} }

View File

@ -992,7 +992,7 @@ void KTerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode
void KTerminalDisplay::setUsesMouse(bool usesMouse){ void KTerminalDisplay::setUsesMouse(bool usesMouse){
_mouseMarks = !usesMouse; _mouseMarks = usesMouse;
} }
void KTerminalDisplay::setAutoFocus(bool au) void KTerminalDisplay::setAutoFocus(bool au)