items.
With previous conf_load changes, space within [] are allowed, so class
and name can appear as-is.
Switch config file and man page to match.
Old behavior still allowed for compat with existing configs out there,
but not documented anywhere.
Prodding by marco for the first bit, at least.
.It Firefox:Dialog
FLOAT
.It Gimp:gimp
.It Firefox:Dialog
FLOAT
.It Gimp:gimp
.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
.It pcb:pcb
FLOAT
.It xine:Xine Window
.It pcb:pcb
FLOAT
.It xine:Xine Window
.It xine:xine Video Fullscreen Window
.It xine:xine Video Fullscreen Window
.It XTerm:xterm
XTERM_FONTADJ
.El
.It XTerm:xterm
XTERM_FONTADJ
.El
.Pp
Custom quirks in the configuration file are specified as follows:
.Pp
.Pp
Custom quirks in the configuration file are specified as follows:
.Pp
-.Dl quirk[<class>:<name>] = <quirk> [ | <quirk> ... ]
+.Dl quirk[<class>:<name>] = <quirk> [ + <quirk> ... ]
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 # let mplayer play
quirk[pcb:pcb] = NONE # remove existing quirk
.Ed
.Pp
quirk[pcb:pcb] = NONE # remove existing quirk
.Ed
.Pp
-Note that spaces in
-.Aq class
-or
-.Aq name
-must be replaced by an underscore in the configuration.
-The config entry for "xine:Xine Panel" would be:
-.Bd -literal -offset indent
-quirk[xine:Xine_Panel] = FLOAT
-.Ed
-.Pp
You can obtain
.Aq class
and
You can obtain
.Aq class
and
-#define SWM_Q_WS "\n| \t"
+/* SWM_Q_WS: retain '|' for back compat for now (2009-08-11) */
+#define SWM_Q_WS "\n|+ \t"
int
parsequirks(char *qstr, unsigned long *quirk)
{
int
parsequirks(char *qstr, unsigned long *quirk)
{
# quirks
# remove with: quirk[class:name] = NONE
# quirks
# remove with: quirk[class:name] = NONE
-#quirk[MPlayer:xv] = FLOAT | FULLSCREEN
-#quirk[OpenOffice.org_2.4:VCLSalFrame] = FLOAT
-#quirk[OpenOffice.org_3.0:VCLSalFrame] = FLOAT
+#quirk[MPlayer:xv] = FLOAT + FULLSCREEN
+#quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
+#quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
#quirk[Firefox-bin:firefox-bin] = TRANSSZ
#quirk[Firefox:Dialog] = FLOAT
#quirk[Firefox-bin:firefox-bin] = TRANSSZ
#quirk[Firefox:Dialog] = FLOAT
-#quirk[Gimp:gimp] = FLOAT | ANYWHERE
-#quirk[XTerm:xterm] = XTERM_FONTADJ
-#quirk[xine:Xine_Window] = FLOAT | ANYWHERE
-#quirk[Xitk:Xitk_Combo] = FLOAT | ANYWHERE
-#quirk[xine:xine_Panel] = FLOAT | ANYWHERE
-#quirk[Xitk:Xine_Window] = FLOAT | ANYWHERE
-#quirk[xine:xine_Video_Fullscreen_Window] = FULLSCREEN | FLOAT
+#quirk[Gimp:gimp] = FLOAT + ANYWHERE
+#quirk[XTerm:xterm] = XTERM FONTADJ
+#quirk[xine:Xine Window] = FLOAT + ANYWHERE
+#quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
+#quirk[xine:xine Panel] = FLOAT + ANYWHERE
+#quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
+#quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT