mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
implement handling for Client, Frame, and Root/Desktop (conflated for now) mouse contexts
This commit is contained in:
parent
4f6297d1ad
commit
b008917895
3 changed files with 18 additions and 1 deletions
|
|
@ -65,6 +65,14 @@ context_from_str(const char *str)
|
|||
return LAB_SSD_BUTTON_MAXIMIZE;
|
||||
} else if (!strcasecmp(str, "Iconify")) {
|
||||
return LAB_SSD_BUTTON_ICONIFY;
|
||||
} else if (!strcasecmp(str, "Frame")) {
|
||||
return LAB_SSD_FRAME;
|
||||
} else if (!strcasecmp(str, "Client")) {
|
||||
return LAB_SSD_CLIENT;
|
||||
} else if (!strcasecmp(str, "Desktop")) {
|
||||
return LAB_SSD_ROOT;
|
||||
} else if (!strcasecmp(str, "Root")) {
|
||||
return LAB_SSD_ROOT;
|
||||
}
|
||||
wlr_log(WLR_ERROR, "unknown mouse context (%s)", str);
|
||||
return LAB_SSD_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue