From e466d899cfdd58ccc2bf6164b1ea0f3d2b1749f5 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 14 Jun 2011 15:47:57 +0000 Subject: [PATCH] add FOCUSPREV quirk and document it. --- scrotwm.1 | 7 +++++-- scrotwm.c | 1 + scrotwm.conf | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scrotwm.1 b/scrotwm.1 index d7b47dd..25762da 100644 --- 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 diff --git a/scrotwm.c b/scrotwm.c index 9f9c6fb..10e725b 100644 --- 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) */ diff --git a/scrotwm.conf b/scrotwm.conf index 5ddf6ec..ede67d9 100644 --- a/scrotwm.conf +++ b/scrotwm.conf @@ -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 -- 1.7.10.4