diff options
author | QC <qball@gmpclient.org> | 2015-02-12 22:26:28 +0100 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-02-12 22:26:28 +0100 |
commit | c760432a6c1d064a9a18ec57252a5f4bf6d46608 (patch) | |
tree | 6bc1fa0676429adad326a5165fff140f20fa4ac0 /include/i3-support.h | |
parent | 605fe4911cb1683624b48d895afe6b2630e0e529 (diff) |
Moving files around, dialogs in dialog directory.
Diffstat (limited to 'include/i3-support.h')
-rw-r--r-- | include/i3-support.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/i3-support.h b/include/i3-support.h new file mode 100644 index 00000000..4187fc26 --- /dev/null +++ b/include/i3-support.h @@ -0,0 +1,32 @@ +#ifndef __ROFI_I3_H__ +#define __ROFI_I3_H__ + +/** + * These functions are dummies when i3 support is not compiled in. + */ + +/** + * @param socket_path The I3 IPC socket. + * @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. + */ +void i3_support_focus_window ( Window id ); + +/** + * @param display The display to read the i3 property from. + * + * Get the i3 socket from the X root window. + * @returns TRUE when i3 is running, FALSE when not. + */ + +int i3_support_initialize ( Display *display ); + +/** + * Cleanup. + */ +void i3_support_free_internals ( void ); +#endif // __ROFI_I3_H__ |