diff options
author | Albert Safin <xzfcpw@gmail.com> | 2020-04-08 10:58:18 +0000 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2021-01-28 12:52:10 +0100 |
commit | 32c10a19f28d348ab43232e0fb5a8591b73540c7 (patch) | |
tree | 79ac0524bb125ce113ba1ddf07461178fc5c6b6d /include | |
parent | 921226783f7228453bbefc5157b81b7010d31808 (diff) | |
download | i3-32c10a19f28d348ab43232e0fb5a8591b73540c7.tar.gz i3-32c10a19f28d348ab43232e0fb5a8591b73540c7.zip |
Add "machine" criterion to match WM_CLIENT_MACHINE
Closes #3981
Add "%machine" title_format placeholder
Add "machine" to the IPC and layout saving/restoring
Diffstat (limited to 'include')
-rw-r--r-- | include/data.h | 4 | ||||
-rw-r--r-- | include/window.h | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/data.h b/include/data.h index e411129f..1d47af64 100644 --- a/include/data.h +++ b/include/data.h @@ -414,6 +414,9 @@ struct Window { * for_window. */ char *role; + /** WM_CLIENT_MACHINE of the window */ + char *machine; + /** Flag to force re-rendering the decoration upon changes */ bool name_x_changed; @@ -500,6 +503,7 @@ struct Match { struct regex *mark; struct regex *window_role; struct regex *workspace; + struct regex *machine; xcb_atom_t window_type; enum { U_DONTCHECK = -1, diff --git a/include/window.h b/include/window.h index 6673e835..858bf0cd 100644 --- a/include/window.h +++ b/include/window.h @@ -95,3 +95,9 @@ void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop, bool *ur * */ void window_update_motif_hints(i3Window *win, xcb_get_property_reply_t *prop, border_style_t *motif_border_style); + +/** + * Updates the WM_CLIENT_MACHINE + * + */ +void window_update_machine(i3Window *win, xcb_get_property_reply_t *prop); |