Shipping all payload in workspace event

This commit is contained in:
Sergey Naumov
2016-04-24 10:40:43 +03:00
parent 19f9acb482
commit b94c465327
2 changed files with 28 additions and 7 deletions

View File

@@ -153,6 +153,17 @@ struct container_t {
std::list< std::shared_ptr<container_t> > nodes;
};
/**
* A workspace event
*/
struct workspace_event_t {
WorkspaceEventType type;
std::shared_ptr<workspace_t> current; ///< Current focused workspace
std::shared_ptr<workspace_t> old; ///< Old (previous) workspace @note With some WindowEventType could be null
};
/**
* @deprecated
*/
@@ -231,7 +242,7 @@ public:
*/
void handle_event();
sigc::signal<void, WorkspaceEventType> 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_mode_event; ///< Output mode event signal
sigc::signal<void, WindowEventType> signal_window_event; ///< Window event signal