diff --git a/src/ywindow.cc b/src/ywindow.cc index fa4bbc754..c02e64198 100644 --- a/src/ywindow.cc +++ b/src/ywindow.cc @@ -576,12 +576,12 @@ void YWindow::handleEvent(const XEvent &event) { break; case ButtonPress: - captureEvents(); + xapp->captureGrabEvents(this); handleButton(event.xbutton); break; case ButtonRelease: - releaseEvents(); + xapp->releaseGrabEvents(this); handleButton(event.xbutton); break; @@ -1227,14 +1227,6 @@ void YWindow::grabButton(int button, unsigned int modifiers) { } } -void YWindow::captureEvents() { - xapp->captureGrabEvents(this); -} - -void YWindow::releaseEvents() { - xapp->releaseGrabEvents(this); -} - void YWindow::donePopup(YPopupWindow * /*command*/) { } diff --git a/src/ywindow.h b/src/ywindow.h index d1f8dbc52..8a8e29559 100644 --- a/src/ywindow.h +++ b/src/ywindow.h @@ -169,9 +169,6 @@ class YWindow : protected YWindowList, private YWindowNode { void grabButton(int button, unsigned modifiers); void grabVButton(int button, unsigned vmodifiers); - void captureEvents(); - void releaseEvents(); - Window handle() { return (flags & wfCreated) ? fHandle : create(); } YWindow *parent() const { return fParent; } YWindow *window() { return this; }