From aab42a4c098ebfdad9145e9a2a50cc1d3671a5f0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 30 Jun 2003 15:04:06 +0000 Subject: added mouse and key screen so we can determine which screen we are on for some commands --- src/fluxbox.hh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/fluxbox.hh b/src/fluxbox.hh index 7870b89..cf1e9a8 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.hh,v 1.62 2003/06/12 14:33:14 fluxgen Exp $ +// $Id: fluxbox.hh,v 1.63 2003/06/30 15:04:06 fluxgen Exp $ #ifndef FLUXBOX_HH #define FLUXBOX_HH @@ -187,7 +187,10 @@ public: bool haveShape() const { return m_have_shape; } int shapeEventbase() const { return m_shape_eventbase; } void getDefaultDataFilename(char *, std::string &); - + BScreen *mouseScreen() { return m_mousescreen; } + BScreen *keyScreen() { return m_keyscreen; } + BScreen *watchingScreen() { return m_watching_screen; } + const XEvent &lastEvent() const { return m_last_event; } private: typedef struct MenuTimestamp { @@ -215,7 +218,6 @@ private: void handleUnmapNotify(XUnmapEvent &ue); void handleClientMessage(XClientMessageEvent &ce); void handleKeyEvent(XKeyEvent &ke); - void doWindowAction(int action, const int param); void setTitlebar(std::vector& dir, const char *arg); std::auto_ptr m_fbatoms; @@ -244,6 +246,7 @@ private: FluxboxWindow *m_focused_window, *m_masked_window; FbTk::Timer m_timer; + BScreen *m_mousescreen, *m_keyscreen; BScreen *m_watching_screen; unsigned int m_watch_keyrelease; @@ -255,12 +258,12 @@ private: std::string m_rc_file; ///< resource filename char **m_argv; int m_argc; + XEvent m_last_event; std::auto_ptr m_key; //default arguments for titlebar left and right static Fluxbox::Titlebar s_titlebar_left[], s_titlebar_right[]; - static Fluxbox *s_singleton; std::vector m_atomhandler; bool m_starting; -- cgit v0.11.2