JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add FOCUSPREV quirk and document it.
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 d7b47dd..25762da 100644 (file)
--- a/scrotwm.1
+++ b/scrotwm.1
@@ -499,7 +499,7 @@ FLOAT
 .It Gimp:gimp
 FLOAT + ANYWHERE
 .It MPlayer:xv
 .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
 .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.
 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:
 .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
 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
 quirk[pcb:pcb] = NONE  # remove existing quirk
 .Ed
 .Pp
index 9f9c6fb..10e725b 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -4186,6 +4186,7 @@ const char *quirkname[] = {
        "ANYWHERE",
        "XTERM_FONTADJ",
        "FULLSCREEN",
        "ANYWHERE",
        "XTERM_FONTADJ",
        "FULLSCREEN",
+       "FOCUSPREV",
 };
 
 /* SWM_Q_WS: retain '|' for back compat for now (2009-08-11) */
 };
 
 /* SWM_Q_WS: retain '|' for back compat for now (2009-08-11) */
index 5ddf6ec..ede67d9 100644 (file)
@@ -102,7 +102,7 @@ dialog_ratio                = 0.6
 
 # quirks
 # remove with: quirk[class:name] = NONE
 
 # 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
 #quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
 #quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
 #quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT