Skip to content

Commit

Permalink
Simplify captureEvents/releaseEvents.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Jul 11, 2024
1 parent 5b2eee2 commit 33c721c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 2 additions & 10 deletions src/ywindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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*/) {
}

Expand Down
3 changes: 0 additions & 3 deletions src/ywindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 33c721c

Please sign in to comment.