mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -05:00
query: support additional conditions for matching clients
Co-authored-by: Andrew J. Hesford <ajh@sideband.org> Closes: #2245.
This commit is contained in:
parent
f394d03600
commit
96da82c085
7 changed files with 217 additions and 34 deletions
|
|
@ -350,14 +350,16 @@ enum ssd_mode
|
|||
ssd_mode_parse(const char *mode)
|
||||
{
|
||||
if (!mode) {
|
||||
return LAB_SSD_MODE_FULL;
|
||||
return LAB_SSD_MODE_INVALID;
|
||||
}
|
||||
if (!strcasecmp(mode, "none")) {
|
||||
return LAB_SSD_MODE_NONE;
|
||||
} else if (!strcasecmp(mode, "border")) {
|
||||
return LAB_SSD_MODE_BORDER;
|
||||
} else {
|
||||
} else if (!strcasecmp(mode, "full")) {
|
||||
return LAB_SSD_MODE_FULL;
|
||||
} else {
|
||||
return LAB_SSD_MODE_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue