diff options
author | fluxgen <fluxgen> | 2003-08-26 23:45:36 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-26 23:45:36 (GMT) |
commit | 9d3b8d55ff550e4bf62275b6193ae6feb7d60056 (patch) | |
tree | 3ba5fe75c7719730ac00118effb85ff14ac800db /src/FbTk | |
parent | 1fc69d17ad7d9953eb81ba428c8f6ae8f8508045 (diff) | |
download | fluxbox-9d3b8d55ff550e4bf62275b6193ae6feb7d60056.zip fluxbox-9d3b8d55ff550e4bf62275b6193ae6feb7d60056.tar.bz2 |
added eventMask
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbWindow.cc | 11 | ||||
-rw-r--r-- | 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 @@ | |||
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 | ||
362 | long 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 | |||
362 | void FbWindow::updateGeometry() { | 371 | void 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; } |