From d9bc9b09897c6e366d021d34e204cd4142772c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 29 Oct 2004 16:16:30 +0000 Subject: [PATCH] Create startup notification even for apps that shouldn't have any, just don't create any visual feedback. This will make sure the apps will also have windows shown on the virtual desktop where they were launched (#68851), and they'll also be able to get user timestamp from the startup notification. KGet no longer needs exception in focus stealing prevention, KWallet either (as the openWallet() call can get a mainwindow id). If I'm lucky I even haven't broken anything. svn path=/trunk/kdebase/kwin/; revision=358798 --- data/Makefile.am | 4 ++-- data/kwin_focus1.sh | 4 ++-- data/kwin_focus2.sh | 8 ++++++++ data/kwin_focus2.upd | 5 +++++ 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 data/kwin_focus2.sh create mode 100644 data/kwin_focus2.upd diff --git a/data/Makefile.am b/data/Makefile.am index c2d3640290..03f2685fc1 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -14,7 +14,7 @@ sounddir= $(kde_sounddir) sound_DATA = pop.wav update_DATA = kwin.upd kwinsticky.upd kwiniconify.upd kwin3_plugin.upd kwin_focus1.upd \ - kwinupdatewindowsettings.upd -update_SCRIPTS = pluginlibFix.pl kwin3_plugin.pl kwin_focus1.sh + kwinupdatewindowsettings.upd kwin_focus2.upd +update_SCRIPTS = pluginlibFix.pl kwin3_plugin.pl kwin_focus1.sh kwin_focus2.sh updatedir = $(kde_datadir)/kconf_update diff --git a/data/kwin_focus1.sh b/data/kwin_focus1.sh index 4fd48d2d48..6ffe0e0398 100644 --- a/data/kwin_focus1.sh +++ b/data/kwin_focus1.sh @@ -2,12 +2,12 @@ was= while read line; do if echo "$line" | grep '^IgnoreFocusStealingClasses=' >/dev/null 2>/dev/null; then - echo "$line" | sed 's/\(^IgnoreFocusStealingClasses=.*$\)/\1,kded,kio_uiserver,kget/' + echo "$line" | sed 's/\(^IgnoreFocusStealingClasses=.*$\)/\1,kio_uiserver/' was=1 else echo "$line" fi done if test -z "$was"; then - echo "IgnoreFocusStealingClasses=kded,kio_uiserver,kget" + echo "IgnoreFocusStealingClasses=kio_uiserver" fi diff --git a/data/kwin_focus2.sh b/data/kwin_focus2.sh new file mode 100644 index 0000000000..c3d6f9eeaf --- /dev/null +++ b/data/kwin_focus2.sh @@ -0,0 +1,8 @@ +#! /bin/sh +while read line; do + if echo "$line" | grep '^IgnoreFocusStealingClasses=' >/dev/null 2>/dev/null; then + echo "$line" | sed 's/,kded//' | sed 's/kded,//' | sed 's/,kget//' | sed 's/kget,//' + else + echo "$line" + fi +done diff --git a/data/kwin_focus2.upd b/data/kwin_focus2.upd new file mode 100644 index 0000000000..681c2c4043 --- /dev/null +++ b/data/kwin_focus2.upd @@ -0,0 +1,5 @@ +Id=kwin_focus2 +File=kwinrc +Group=Windows +Options=overwrite +Script=kwin_focus2.sh,sh