Re: [Sawfish] Avoid Focus for KDE Notification Windows?

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


Hi,

On Wed, 13 Mar 2013 10:47:00 +0900
wrote "Andrew A. Adams" <aaa@xxxxxxxxxxx>:

>
>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

Attachment: Bildschirmfoto1.png
Description: PNG image

Attachment: Bildschirmfoto2.png
Description: PNG image

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))))

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/