From 18064df19f670589b9387c194b55345c717473db Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 30 Jun 2002 03:30:54 +0000 Subject: add capability to stick a window from input, and make close buttons work. --- src/Window.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Window.cc') diff --git a/src/Window.cc b/src/Window.cc index 4bfca5c5..09d4ec60 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2750,8 +2750,8 @@ void BlackboxWindow::buttonReleaseEvent(const XButtonEvent *re) { BInput::IconifyButtonClick)) redrawIconifyButton(False); } else if (frame.close_button == re->window) { - if ((re->x < 0 || re->x >= static_cast(frame.button_w)) || - (re->y < 0 || re->y >= static_cast(frame.button_w))) + if (! ((re->x < 0 || re->x >= static_cast(frame.button_w)) || + (re->y < 0 || re->y >= static_cast(frame.button_w)))) input->doAction(this, re->button, state, BInput::CloseButtonClick); redrawCloseButton(False); } else if (flags.moving) { -- cgit v1.2.3