mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add window resize indicator
This commit is contained in:
parent
c8321e3264
commit
58b33fb0c9
12 changed files with 296 additions and 0 deletions
|
|
@ -657,6 +657,16 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
rc.workspace_config.popuptime = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "number.desktops")) {
|
||||
rc.workspace_config.min_nr_workspaces = MAX(1, atoi(content));
|
||||
} else if (!strcasecmp(nodename, "popupShow.resize")) {
|
||||
if (!strcasecmp(content, "Always")) {
|
||||
rc.resize_indicator = LAB_RESIZE_INDICATOR_ALWAYS;
|
||||
} else if (!strcasecmp(content, "Never")) {
|
||||
rc.resize_indicator = LAB_RESIZE_INDICATOR_NEVER;
|
||||
} else if (!strcasecmp(content, "Nonpixel")) {
|
||||
rc.resize_indicator = LAB_RESIZE_INDICATOR_NON_PIXEL;
|
||||
} else {
|
||||
wlr_log(WLR_ERROR, "Invalid value for <resize popupShow />");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -806,6 +816,8 @@ rcxml_init(void)
|
|||
rc.window_switcher.preview = true;
|
||||
rc.window_switcher.outlines = true;
|
||||
|
||||
rc.resize_indicator = LAB_RESIZE_INDICATOR_NEVER;
|
||||
|
||||
rc.workspace_config.popuptime = INT_MIN;
|
||||
rc.workspace_config.min_nr_workspaces = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue