]> code.delx.au - spectrwm/commitdiff
add FOCUSPREV quirk and document it. SCROTWM_0_9_30
authorMarco Peereboom <marco@conformal.com>
Tue, 14 Jun 2011 15:47:57 +0000 (15:47 +0000)
committerMarco Peereboom <marco@conformal.com>
Tue, 14 Jun 2011 15:47:57 +0000 (15:47 +0000)
scrotwm.1
scrotwm.c
scrotwm.conf

index d7b47dd7ba2b5cf0b7ae28d2ad5235dd0136b4f7..25762dab85c97d0c819e31cde4c7f48170d9d0f2 100644 (file)
--- a/scrotwm.1
+++ b/scrotwm.1
@@ -499,7 +499,7 @@ FLOAT
 .It Gimp:gimp
 FLOAT + ANYWHERE
 .It MPlayer:xv
-FLOAT + FULLSCREEN
+FLOAT + FULLSCREEN + FOCUSPREV
 .It OpenOffice.org 2.4:VCLSalFrame
 FLOAT
 .It OpenOffice.org 3.1:VCLSalFrame
@@ -535,6 +535,9 @@ Allow window to position itself, uncentered.
 Adjust xterm fonts when resizing.
 .It FULLSCREEN
 Remove border to allow window to use full screen size.
+.It FOCUSPREV
+On exit force focus on previously focused application not previous application
+in the stack.
 .El
 .Pp
 Custom quirks in the configuration file are specified as follows:
@@ -549,7 +552,7 @@ specify the window to which the quirk(s) apply, and
 is one of the quirks from the list above.
 For example:
 .Bd -literal -offset indent
-quirk[MPlayer:xv] = FLOAT + FULLSCREEN # let mplayer play
+quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
 quirk[pcb:pcb] = NONE  # remove existing quirk
 .Ed
 .Pp
index 9f9c6fb54ba4982acdac2b843094bf5412c1dc6c..10e725b9a82aa8f3b7a0fa37cf811b740699265f 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -4186,6 +4186,7 @@ const char *quirkname[] = {
        "ANYWHERE",
        "XTERM_FONTADJ",
        "FULLSCREEN",
+       "FOCUSPREV",
 };
 
 /* SWM_Q_WS: retain '|' for back compat for now (2009-08-11) */
index 5ddf6ec68c665181dfcd02a37d0f99570a4031ef..ede67d9bb84fcc4549ceea566246fe6d5e38af67 100644 (file)
@@ -102,7 +102,7 @@ dialog_ratio                = 0.6
 
 # quirks
 # remove with: quirk[class:name] = NONE
-#quirk[MPlayer:xv]                     = FLOAT + FULLSCREEN
+#quirk[MPlayer:xv]                     = FLOAT + FULLSCREEN + FOCUSPREV
 #quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
 #quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
 #quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT