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
This commit is contained in:
parent
d421b5c7e7
commit
d9bc9b0989
4 changed files with 17 additions and 4 deletions
|
@ -14,7 +14,7 @@ sounddir= $(kde_sounddir)
|
||||||
sound_DATA = pop.wav
|
sound_DATA = pop.wav
|
||||||
|
|
||||||
update_DATA = kwin.upd kwinsticky.upd kwiniconify.upd kwin3_plugin.upd kwin_focus1.upd \
|
update_DATA = kwin.upd kwinsticky.upd kwiniconify.upd kwin3_plugin.upd kwin_focus1.upd \
|
||||||
kwinupdatewindowsettings.upd
|
kwinupdatewindowsettings.upd kwin_focus2.upd
|
||||||
update_SCRIPTS = pluginlibFix.pl kwin3_plugin.pl kwin_focus1.sh
|
update_SCRIPTS = pluginlibFix.pl kwin3_plugin.pl kwin_focus1.sh kwin_focus2.sh
|
||||||
|
|
||||||
updatedir = $(kde_datadir)/kconf_update
|
updatedir = $(kde_datadir)/kconf_update
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
was=
|
was=
|
||||||
while read line; do
|
while read line; do
|
||||||
if echo "$line" | grep '^IgnoreFocusStealingClasses=' >/dev/null 2>/dev/null; then
|
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
|
was=1
|
||||||
else
|
else
|
||||||
echo "$line"
|
echo "$line"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test -z "$was"; then
|
if test -z "$was"; then
|
||||||
echo "IgnoreFocusStealingClasses=kded,kio_uiserver,kget"
|
echo "IgnoreFocusStealingClasses=kio_uiserver"
|
||||||
fi
|
fi
|
||||||
|
|
8
data/kwin_focus2.sh
Normal file
8
data/kwin_focus2.sh
Normal file
|
@ -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
|
5
data/kwin_focus2.upd
Normal file
5
data/kwin_focus2.upd
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Id=kwin_focus2
|
||||||
|
File=kwinrc
|
||||||
|
Group=Windows
|
||||||
|
Options=overwrite
|
||||||
|
Script=kwin_focus2.sh,sh
|
Loading…
Reference in a new issue