all repos — fluxbox @ 9d3b8d55ff550e4bf62275b6193ae6feb7d60056

custom fork of the fluxbox windowmanager

added eventMask
fluxgen fluxgen
commit

9d3b8d55ff550e4bf62275b6193ae6feb7d60056

parent

1fc69d17ad7d9953eb81ba428c8f6ae8f8508045

2 files changed, 12 insertions(+), 2 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/FbTk/FbWindow.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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"

@@ -357,6 +357,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() {
M src/FbTk/FbWindow.hhsrc/FbTk/FbWindow.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ unsigned int height() const { return m_height; }

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; }