Remanage window after property updates (like titles) (#3759)
This commit is contained in:
committed by
Michael Stapelberg
parent
3b88e41dd8
commit
0845d7b264
@ -365,3 +365,22 @@ char *startup_workspace_for_window(i3Window *cwindow, xcb_get_property_reply_t *
|
||||
|
||||
return sequence->workspace;
|
||||
}
|
||||
|
||||
/*
|
||||
* Deletes the startup sequence for a window if it exists.
|
||||
*
|
||||
*/
|
||||
void startup_sequence_delete_by_window(i3Window *win) {
|
||||
struct Startup_Sequence *sequence;
|
||||
xcb_get_property_cookie_t cookie;
|
||||
xcb_get_property_reply_t *startup_id_reply;
|
||||
|
||||
cookie = xcb_get_property(conn, false, win->id, A__NET_STARTUP_ID,
|
||||
XCB_GET_PROPERTY_TYPE_ANY, 0, 512);
|
||||
startup_id_reply = xcb_get_property_reply(conn, cookie, NULL);
|
||||
|
||||
sequence = startup_sequence_get(win, startup_id_reply, true);
|
||||
if (sequence != NULL) {
|
||||
startup_sequence_delete(sequence);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user