Re: Avoid Focus for KDE Notification Windows?

fuchur <[email protected]>
Newsgroups gmane.comp.window-managers.sawfish
Organization W.W
Message-ID <[email protected]>
Hi,

On Wed, 13 Mar 2013 10:47:00 +0900
wrote "Andrew A. Adams" <[email protected]>:

>
>Thank you Fuchur, That seems to have solved it, without introducing any other 
>problems that I can see.
>

I am a new KDE user now (gnome killing me). I have the same problems
with plasma. Settings never-focus by window rules is not a good idea,
then you can't for example use the search box from k-menu. Here are my
settings as attachment and you also need the patch by this mail. It
should also not "kill" other things in sawfish but need more testing.
Comments welcome.

-- 
Regards,
Fuchur

GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53  C116 E5BC 70D5 B8D7 B2B0
Bildschirmfoto1.png (image/png, 36.9 KB) - not displayed
Bildschirmfoto2.png (image/png, 30.8 KB) - not displayed
kde-plasma.patch (text/x-patch, 1.8 KB)
diff -urNad sawfish.orig/lisp/sawfish/wm/ext/match-window.jl sawfish/lisp/sawfish/wm/ext/match-window.jl
--- sawfish.orig/lisp/sawfish/wm/ext/match-window.jl	2013-09-01 04:30:18.000000000 +0200
+++ sawfish/lisp/sawfish/wm/ext/match-window.jl	2013-09-01 04:38:10.000000000 +0200
@@ -84,7 +84,7 @@
 	       )
      (focus ,(_ "Focus")
             (raise-on-focus boolean)
-            (focus-when-mapped boolean)
+            (never-focus-when-mapped boolean)
             (never-focus boolean)
             (focus-click-through boolean)
             (focus-mode ,(lambda () `(choice ,@focus-modes)))
diff -urNad sawfish.orig/lisp/sawfish/wm/state/transient.jl sawfish/lisp/sawfish/wm/state/transient.jl
--- sawfish.orig/lisp/sawfish/wm/state/transient.jl	2013-09-01 04:30:18.000000000 +0200
+++ sawfish/lisp/sawfish/wm/state/transient.jl	2013-09-01 04:37:33.000000000 +0200
@@ -178,11 +178,11 @@
                               (eql x-for-id (root-window-id))
                               (let ((x-for (get-window-by-id x-for-id)))
                                 (and x-for (window-get x-for 'desktop))))
-                          (or (and
-                               focus-windows-when-mapped
-                               (not (window-get w 'never-focus))
-                               (not (window-get w 'inhibit-focus-when-mapped)))
-                              (window-get w 'focus-when-mapped))))))
+                          (and
+                           focus-windows-when-mapped
+                           (not (window-get w 'never-focus-when-mapped))
+                           (not (window-get w 'never-focus))
+                           (not (window-get w 'inhibit-focus-when-mapped)))))))
       (unless (window-get w 'sticky)
         (when (not (eq (car (window-in-workspace-p w current-workspace))
                        (car (window-workspaces w))))
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iEYEARECAAYFAlIisjcACgkQ5bxw1bjXsrCJUACeM7PVi0Qsp2eQ+Qc4qDQf2nK5
UkgAoLGcds4KSbuPsnw25H7DQVb0B8Bi
=tD5F
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.