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:
parent
a0bfe0f77f
commit
3eb836fd81
@ -200,14 +200,9 @@ void Session::addView(KTerminalDisplay * widget)
|
||||
|
||||
// allow emulation to notify view when the foreground process
|
||||
// indicates whether or not it is interested in mouse signals
|
||||
|
||||
// TODO Disabled since at the moment it is not working properly.
|
||||
// Remember to reenable that once it' is's working.
|
||||
|
||||
//connect( _emulation , SIGNAL(programUsesMouseChanged(bool)) , widget ,
|
||||
// SLOT(setUsesMouse(bool)) );
|
||||
|
||||
//widget->setUsesMouse( _emulation->programUsesMouse() );
|
||||
connect( _emulation , SIGNAL(programUsesMouseChanged(bool)) , widget ,
|
||||
SLOT(setUsesMouse(bool)) );
|
||||
widget->setUsesMouse( _emulation->programUsesMouse() );
|
||||
|
||||
widget->setScreenWindow(_emulation->createWindow());
|
||||
}
|
||||
|
@ -992,7 +992,7 @@ void KTerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode
|
||||
|
||||
|
||||
void KTerminalDisplay::setUsesMouse(bool usesMouse){
|
||||
_mouseMarks = !usesMouse;
|
||||
_mouseMarks = usesMouse;
|
||||
}
|
||||
|
||||
void KTerminalDisplay::setAutoFocus(bool au)
|
||||
|
Loading…
x
Reference in New Issue
Block a user