diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-11 12:17:14 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-11 12:17:14 -0500 |
commit | 451648d55498ac29d9164519cc4cda2e65503a16 (patch) | |
tree | 1fc285e3f05d12c27fa65c116dd46ac9a76f68a7 /kate | |
parent | 8ee0ab9902681d432ea668d6e09f630b3d2f9e62 (diff) | |
parent | 3081800c1471aa9cb8d67203b2c6277a92a1f5ce (diff) | |
download | tdebase-451648d55498ac29d9164519cc4cda2e65503a16.tar.gz tdebase-451648d55498ac29d9164519cc4cda2e65503a16.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'kate')
-rw-r--r-- | kate/app/katemain.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kate/app/katemain.cpp b/kate/app/katemain.cpp index fedb89b7c..9dbcc3d43 100644 --- a/kate/app/katemain.cpp +++ b/kate/app/katemain.cpp @@ -231,7 +231,24 @@ extern "C" KDE_EXPORT int kdemain( int argc, char **argv ) else wRef.call("restore"); } + // The --use parameter forces Kate to use a single session window to host + // all opened files. Generally, that parameter works. Yet when a file is + // opened into Kate externally, such as from Konqueror, Kate will pop + // forward (raise) but not grab the focus (show). The following snippet + // resolves that problem. For whatever reason the hide call is needed + // before the raise and show otherwise the snippet fails. Some extra glue + // might be needed. With Kate open: + // "Right-click" on the title bar + // Select Advanced + // Select Special Application Settings (Not Special Window Settings) + // Select the Workarounds tab + // Enable the Focus stealing prevention check box + // Select the Force option + // Select the None option + + wRef.call( "hide" ); wRef.call( "raise" ); + wRef.call( "show" ); // stop startup notification KStartupInfo::appStarted( ); |