added eventMask
This commit is contained in:
parent
1fc69d17ad
commit
9d3b8d55ff
2 changed files with 12 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "FbWindow.hh"
|
||||||
|
|
||||||
|
@ -359,6 +359,15 @@ int FbWindow::screenNumber() const {
|
||||||
return m_screen_num;
|
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() {
|
void FbWindow::updateGeometry() {
|
||||||
if (m_window == 0)
|
if (m_window == 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef FBTK_FBWINDOW_HH
|
||||||
#define FBTK_FBWINDOW_HH
|
#define FBTK_FBWINDOW_HH
|
||||||
|
@ -132,6 +132,7 @@ public:
|
||||||
unsigned int borderWidth() const { return m_border_width; }
|
unsigned int borderWidth() const { return m_border_width; }
|
||||||
int depth() const { return m_depth; }
|
int depth() const { return m_depth; }
|
||||||
int screenNumber() const;
|
int screenNumber() const;
|
||||||
|
long eventMask() const;
|
||||||
/// compare X window
|
/// compare X window
|
||||||
bool operator == (Window win) const { return m_window == win; }
|
bool operator == (Window win) const { return m_window == win; }
|
||||||
bool operator != (Window win) const { return m_window != win; }
|
bool operator != (Window win) const { return m_window != win; }
|
||||||
|
|
Loading…
Reference in a new issue