Added a method to get access to the i3 file descriptor

This commit is contained in:
notfound4
2016-05-09 21:04:12 +02:00
parent fa0faab8d5
commit d2d90107aa
2 changed files with 10 additions and 0 deletions

View File

@@ -246,6 +246,12 @@ public:
*/
void handle_event();
/**
* Get the file descriptor associated to i3.
* @return the file descriptor associated to i3, -1 if not created yet.
*/
int32_t get_file_descriptor();
sigc::signal<void, const workspace_event_t&> signal_workspace_event; ///< Workspace event signal
sigc::signal<void> signal_output_event; ///< Output event signal
sigc::signal<void> signal_mode_event; ///< Output mode event signal