Merge pull request #4 from notfound4/dev
Added a method to get access to the i3 file descriptor
This commit is contained in:
@@ -246,6 +246,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
void handle_event();
|
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, const workspace_event_t&> signal_workspace_event; ///< Workspace event signal
|
||||||
sigc::signal<void> signal_output_event; ///< Output event signal
|
sigc::signal<void> signal_output_event; ///< Output event signal
|
||||||
sigc::signal<void> signal_mode_event; ///< Output mode event signal
|
sigc::signal<void> signal_mode_event; ///< Output mode event signal
|
||||||
|
|||||||
@@ -410,4 +410,8 @@ bool connection::send_command(const std::string& command) const {
|
|||||||
#undef i3IPC_TYPE_STR
|
#undef i3IPC_TYPE_STR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t connection::get_file_descriptor() {
|
||||||
|
return m_event_socket;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user