diff options
author | corvid <corvid@lavabit.com> | 2012-11-04 19:33:10 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-11-04 19:33:10 +0000 |
commit | 256fc10e8e58c44baf1fe9c5ea0d65649199b116 (patch) | |
tree | 70eec07e5e38e80d69bcbf626dd107b421d561cf /dw/layout.cc | |
parent | 694cdacadc33f8fa0cd76afd97487315c210713c (diff) |
rm mayBeSuppressed
...since we aren't currently making any good use of it.
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index 2e08a3f8..d91ff543 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -773,7 +773,7 @@ bool Layout::buttonEvent (ButtonEventType type, View *view, int numPressed, event.button = button; event.numPressed = numPressed; - return processMouseEvent (&event, type, true); + return processMouseEvent (&event, type); } /** @@ -792,7 +792,7 @@ bool Layout::motionNotify (View *view, int x, int y, ButtonState state) event.yCanvas = y; event.state = state; - return processMouseEvent (&event, MOTION_NOTIFY, true); + return processMouseEvent (&event, MOTION_NOTIFY); } /** @@ -945,7 +945,7 @@ void Layout::moveToWidget (Widget *newWidgetAtPoint, ButtonState state) * has been called before. */ bool Layout::processMouseEvent (MousePositionEvent *event, - ButtonEventType type, bool mayBeSuppressed) + ButtonEventType type) { Widget *widget; @@ -979,7 +979,7 @@ bool Layout::processMouseEvent (MousePositionEvent *event, widget = getWidgetAtPoint(event->xCanvas, event->yCanvas); for (; widget; widget = widget->getParent ()) { - if (!mayBeSuppressed || widget->isButtonSensitive ()) { + if (widget->isButtonSensitive ()) { event->xWidget = event->xCanvas - widget->getAllocation()->x; event->yWidget = event->yCanvas - widget->getAllocation()->y; |