i3bar: kick tray clients after output configuration changed

This makes i3bar reflect xrandr --output foo --primary changes immediately.
This commit is contained in:
Michael Stapelberg
2012-04-22 20:43:52 +02:00
parent 189b27b01e
commit 17e4d7ede1
3 changed files with 39 additions and 11 deletions

View File

@ -77,6 +77,17 @@ void clean_xcb();
*/
void get_atoms();
/*
* Reparents all tray clients of the specified output to the root window. This
* is either used when shutting down, when an output appears (xrandr --output
* VGA1 --off) or when the primary output changes.
*
* Applications using the tray will start the protocol from the beginning again
* afterwards.
*
*/
void kick_tray_clients(i3_output *output);
/*
* Destroy the bar of the specified output
*