2015-07-27 03:22:21 -04:00
|
|
|
#ifndef ROFI_I3_H
|
|
|
|
#define ROFI_I3_H
|
2015-02-02 08:49:19 -05:00
|
|
|
|
|
|
|
/**
|
2016-01-07 02:54:24 -05:00
|
|
|
* @defgroup I3Support I3Support
|
|
|
|
* @ingroup HELPERS
|
|
|
|
*
|
2015-02-02 08:49:19 -05:00
|
|
|
* These functions are dummies when i3 support is not compiled in.
|
2016-01-07 02:54:24 -05:00
|
|
|
*
|
|
|
|
* @{
|
2015-02-02 08:49:19 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param id The window to focus on.
|
|
|
|
*
|
|
|
|
* If we want to switch windows in I3, we use I3 IPC mode.
|
|
|
|
* This works more better then sending messages via X11.
|
|
|
|
* Hopefully at some point, I3 gets fixed and this is not needed.
|
|
|
|
* This function takes the path to the i3 IPC socket, and the XID of the window.
|
|
|
|
*/
|
2016-02-28 06:18:15 -05:00
|
|
|
void i3_support_focus_window ( xcb_window_t id );
|
2015-02-02 08:49:19 -05:00
|
|
|
|
|
|
|
/**
|
2016-06-01 01:34:41 -04:00
|
|
|
* @param xcb The xcb to read the i3 property from.
|
2015-02-02 08:49:19 -05:00
|
|
|
*
|
|
|
|
* Get the i3 socket from the X root window.
|
|
|
|
* @returns TRUE when i3 is running, FALSE when not.
|
|
|
|
*/
|
|
|
|
|
2016-03-01 12:11:55 -05:00
|
|
|
int i3_support_initialize ( xcb_stuff *xcb );
|
2015-02-02 08:49:19 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Cleanup.
|
|
|
|
*/
|
|
|
|
void i3_support_free_internals ( void );
|
2016-01-07 02:54:24 -05:00
|
|
|
/*@}*/
|
2015-07-27 03:22:21 -04:00
|
|
|
#endif // ROFI_I3_H
|