Client's button(Press|Release)Event and motionNotifyEvent accept xcb_window_t

icc-effect-5.14.5
Martin Gräßlin 2013-05-03 10:32:18 +02:00
parent 7cf461b154
commit 5632285b1e
2 changed files with 6 additions and 6 deletions

View File

@ -682,9 +682,9 @@ private:
void focusOutEvent(XFocusOutEvent* e);
virtual void damageNotifyEvent();
bool buttonPressEvent(Window w, int button, int state, int x, int y, int x_root, int y_root);
bool buttonReleaseEvent(Window w, int button, int state, int x, int y, int x_root, int y_root);
bool motionNotifyEvent(Window w, int state, int x, int y, int x_root, int y_root);
bool buttonPressEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root);
bool buttonReleaseEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root);
bool motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_root, int y_root);
void checkQuickTilingMaximizationZones(int xroot, int yroot);
bool processDecorationButtonPress(int button, int state, int x, int y, int x_root, int y_root,

View File

@ -960,7 +960,7 @@ static bool modKeyDown(int state) {
// return value matters only when filtering events before decoration gets them
bool Client::buttonPressEvent(Window w, int button, int state, int x, int y, int x_root, int y_root)
bool Client::buttonPressEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root)
{
if (buttonDown) {
if (w == wrapperId())
@ -1134,7 +1134,7 @@ void Client::processMousePressEvent(QMouseEvent* e)
}
// return value matters only when filtering events before decoration gets them
bool Client::buttonReleaseEvent(Window w, int /*button*/, int state, int x, int y, int x_root, int y_root)
bool Client::buttonReleaseEvent(xcb_window_t w, int /*button*/, int state, int x, int y, int x_root, int y_root)
{
if (w == decorationId() && !buttonDown)
return false;
@ -1226,7 +1226,7 @@ void Client::checkQuickTilingMaximizationZones(int xroot, int yroot)
}
// return value matters only when filtering events before decoration gets them
bool Client::motionNotifyEvent(Window w, int state, int x, int y, int x_root, int y_root)
bool Client::motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_root, int y_root)
{
if (w != frameId() && w != decorationId() && w != inputId() && w != moveResizeGrabWindow())
return true; // care only about the whole frame