Client's button(Press|Release)Event and motionNotifyEvent accept xcb_window_t
This commit is contained in:
parent
7cf461b154
commit
5632285b1e
2 changed files with 6 additions and 6 deletions
6
client.h
6
client.h
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue