From db6e78bba9fbd0e216f0ebbe5d4f55090ca62069 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 15 Jun 2004 11:03:17 +0000 Subject: minor fix --- src/FbTk/FbWindow.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 8bd0ced..67afb68 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.35 2004/06/07 20:24:38 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.36 2004/06/15 11:03:17 fluxgen Exp $ #include "FbWindow.hh" @@ -415,11 +415,10 @@ int FbWindow::screenNumber() const { long FbWindow::eventMask() const { XWindowAttributes attrib; - if (XGetWindowAttributes(s_display, window(), - &attrib) == Success) { - return attrib.your_event_mask; - } - return 0; + XGetWindowAttributes(s_display, window(), + &attrib); + return attrib.your_event_mask; + } void FbWindow::setBufferPixmap(Pixmap pm) { -- cgit v0.11.2