From 9d3b8d55ff550e4bf62275b6193ae6feb7d60056 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 26 Aug 2003 23:45:36 +0000 Subject: added eventMask --- src/FbTk/FbWindow.cc | 11 ++++++++++- src/FbTk/FbWindow.hh | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 09c75d1..6a623d9 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.25 2003/08/26 23:45:36 fluxgen Exp $ #include "FbWindow.hh" @@ -359,6 +359,15 @@ int FbWindow::screenNumber() const { return m_screen_num; } +long FbWindow::eventMask() const { + XWindowAttributes attrib; + if (XGetWindowAttributes(s_display, window(), + &attrib) == Success) { + return attrib.your_event_mask; + } + return 0; +} + void FbWindow::updateGeometry() { if (m_window == 0) return; diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index d6cfea8..7c12dca 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.23 2003/08/26 23:45:36 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH @@ -132,6 +132,7 @@ public: unsigned int borderWidth() const { return m_border_width; } int depth() const { return m_depth; } int screenNumber() const; + long eventMask() const; /// compare X window bool operator == (Window win) const { return m_window == win; } bool operator != (Window win) const { return m_window != win; } -- cgit v0.11.2