feature: implement ewmh desktop viewport property
Set and update the _NET_DESKTOP_VIEWPORT property http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#idm140146176862048 > _NET_DESKTOP_VIEWPORT x, y, CARDINAL[][2]/32 > Array of pairs of cardinals that define the top left corner of each > desktop's viewport.
This commit is contained in:
committed by
Michael Stapelberg
parent
d1e59a204e
commit
4205973135
@ -93,6 +93,7 @@ Con *workspace_get(const char *num, bool *created) {
|
||||
|
||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");
|
||||
ewmh_update_number_of_desktops();
|
||||
ewmh_update_desktop_viewport();
|
||||
if (created != NULL)
|
||||
*created = true;
|
||||
} else if (created != NULL) {
|
||||
@ -418,6 +419,7 @@ static void _workspace_show(Con *workspace) {
|
||||
tree_close(old, DONT_KILL_WINDOW, false, false);
|
||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
|
||||
ewmh_update_number_of_desktops();
|
||||
ewmh_update_desktop_viewport();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user