Add a hidden option for the ping timeout before the dialog offering
killing the app appears (for #69211). svn path=/trunk/kdebase/kwin/; revision=319659icc-effect-5.14.5
parent
e27084eb80
commit
33b11f1f07
|
@ -973,11 +973,13 @@ void Client::pingWindow()
|
|||
{
|
||||
if( !Pping )
|
||||
return; // can't ping :(
|
||||
if( options->killPingTimeout == 0 )
|
||||
return; // turned off
|
||||
if( ping_timer != NULL )
|
||||
return; // pinging already
|
||||
ping_timer = new QTimer( this );
|
||||
connect( ping_timer, SIGNAL( timeout()), SLOT( pingTimeout()));
|
||||
ping_timer->start( 5000, true ); // give it 5 seconds
|
||||
ping_timer->start( options->killPingTimeout, true );
|
||||
ping_timestamp = qt_x_time;
|
||||
workspace()->sendPingToWindow( window(), ping_timestamp );
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<entry key="ElectricBorders" type="Int" />
|
||||
<entry key="ElectricBorderDelay" type="Int" />
|
||||
<entry key="IgnorePositionClasses" type="StringList" />
|
||||
<entry key="KillPingTimeout" type="Int" />
|
||||
</group>
|
||||
<group name="WM" >
|
||||
<entry key="frame" type="Color" />
|
||||
|
|
|
@ -141,6 +141,8 @@ unsigned long Options::updateSettings()
|
|||
++it )
|
||||
(*it) = (*it).lower();
|
||||
|
||||
killPingTimeout = config->readNumEntry( "KillPingTimeout", 5000 );
|
||||
|
||||
// Mouse bindings
|
||||
config->setGroup( "MouseBindings");
|
||||
CmdActiveTitlebar1 = mouseCommand(config->readEntry("CommandActiveTitlebar1","Raise"), true );
|
||||
|
|
|
@ -252,6 +252,9 @@ class Options : public KDecorationOptions
|
|||
|
||||
bool topMenuEnabled() const { return topmenus; }
|
||||
bool desktopTopMenu() const { return desktop_topmenu; }
|
||||
|
||||
// timeout before non-responding application will be killed after attempt to close
|
||||
int killPingTimeout;
|
||||
|
||||
private:
|
||||
WindowOperation OpTitlebarDblClick;
|
||||
|
|
Loading…
Reference in New Issue