summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc11
-rw-r--r--src/FbTk/FbWindow.hh3
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.25 2003/08/26 23:45:36 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25 25
@@ -359,6 +359,15 @@ int FbWindow::screenNumber() const {
359 return m_screen_num; 359 return m_screen_num;
360} 360}
361 361
362long FbWindow::eventMask() const {
363 XWindowAttributes attrib;
364 if (XGetWindowAttributes(s_display, window(),
365 &attrib) == Success) {
366 return attrib.your_event_mask;
367 }
368 return 0;
369}
370
362void FbWindow::updateGeometry() { 371void FbWindow::updateGeometry() {
363 if (m_window == 0) 372 if (m_window == 0)
364 return; 373 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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.23 2003/08/26 23:45:36 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -132,6 +132,7 @@ public:
132 unsigned int borderWidth() const { return m_border_width; } 132 unsigned int borderWidth() const { return m_border_width; }
133 int depth() const { return m_depth; } 133 int depth() const { return m_depth; }
134 int screenNumber() const; 134 int screenNumber() const;
135 long eventMask() const;
135 /// compare X window 136 /// compare X window
136 bool operator == (Window win) const { return m_window == win; } 137 bool operator == (Window win) const { return m_window == win; }
137 bool operator != (Window win) const { return m_window != win; } 138 bool operator != (Window win) const { return m_window != win; }