diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-06-30 03:30:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-06-30 03:30:54 +0000 |
| commit | 18064df19f670589b9387c194b55345c717473db (patch) | |
| tree | fed19ea6e5d097b021ed66e611db1fb2186200de /src/Window.cc | |
| parent | 351a06655bdd7d440780b5bc5b255081c888044b (diff) | |
add capability to stick a window from input, and make close buttons work.
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<signed>(frame.button_w)) || - (re->y < 0 || re->y >= static_cast<signed>(frame.button_w))) + if (! ((re->x < 0 || re->x >= static_cast<signed>(frame.button_w)) || + (re->y < 0 || re->y >= static_cast<signed>(frame.button_w)))) input->doAction(this, re->button, state, BInput::CloseButtonClick); redrawCloseButton(False); } else if (flags.moving) { |
