/*EXTL_DOC
- * Returns the \var{n}:th object managed by \var{mplex} on the
- * \var{l}:th layer.
+ * Returns the \var{n}:th object on the mutually exclusive
+ * list of \var{mplex}.
*/
EXTL_SAFE
EXTL_EXPORT_MEMBER
}
+void mplex_set_szplcy(WMPlex *mplex, WRegion *sub, WSizePolicy szplcy)
+{
+ WStacking *node;
+
+ node=mplex_find_stacking(mplex, sub);
+
+ if(node!=NULL)
+ node->szplcy=szplcy;
+}
+
+
+WSizePolicy mplex_get_szplcy(WMPlex *mplex, WRegion *sub)
+{
+ WStacking *node;
+
+ node=mplex_find_stacking(mplex, sub);
+
+ return (node==NULL ? SIZEPOLICY_DEFAULT : node->szplcy);
+}
+
+
/*}}}*/
region_set_manager(reg, (WRegion*)mplex);
+ if(param->flags&MPLEX_ATTACH_PASSIVE)
+ reg->flags|=REGION_SKIP_FOCUS;
+
if(!(param->flags&MPLEX_ATTACH_WHATEVER)){
WFitParams fp;
static void get_params(WMPlex *mplex, ExtlTab tab, int mask,
WMPlexAttachParams *par)
{
- int layer=1;
int tmp;
char *tmpstr;
int ok=~mask;
if(extl_table_is_bool_set(tab, "hidden"))
par->flags|=MPLEX_ATTACH_HIDDEN&ok;
+ if(extl_table_is_bool_set(tab, "passive"))
+ par->flags|=MPLEX_ATTACH_PASSIVE&ok;
+
if(extl_table_is_bool_set(tab, "pseudomodal"))
par->flags|=MPLEX_ATTACH_PSEUDOMODAL&ok;
* \var{hidden} & (boolean) Attach hidden, if not prevented
* by e.g. the mutually exclusive list being empty.
* This option overrides \var{switchto}. \\
+ * \var{passive} & (boolean) Skip in certain focusing operations. \\
* \var{pseudomodal} & (boolean) The attached region is ``pseudomodal''
* if the stacking level dictates it to be modal.
* This means that the region may be hidden to display
*
* \begin{tabularx}{\linewidth}{lX}
* \tabhead{Field & Description}
- * \var{pos} & The corner of the screen to place the status display
- * in: one of \codestr{tl}, \codestr{tr}, \codestr{bl}
+ * \var{pos} & (string) The corner of the screen to place the status
+ * display in: one of \codestr{tl}, \codestr{tr}, \codestr{bl}
* or \codestr{br}. \\
- * \var{action} & If this field is set to \codestr{keep}, \var{corner}
- * and \var{orientation} are changed for the existing
+ * \var{fullsize} & (boolean) Waste all available space. \\
+ * \var{action} & (string) If this field is set to \codestr{keep},
+ * \var{pos} and \var{fullsize} are changed for the existing
* status display. If this field is set to \codestr{remove},
* the existing status display is removed. If this
* field is not set or is set to \codestr{replace}, a