Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mouse button reporting in X11UnderlayTracker #103

Merged
merged 1 commit into from Mar 27, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -316,7 +316,7 @@ public void mouseClicked(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_CLICKED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -327,7 +327,7 @@ public void mouseEntered(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_ENTERED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -338,7 +338,7 @@ public void mouseExited(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_EXITED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -349,7 +349,7 @@ public void mousePressed(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_PRESSED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -360,7 +360,7 @@ public void mouseReleased(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_RELEASED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -371,7 +371,7 @@ public void mouseMoved(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_MOVED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -382,7 +382,7 @@ public void mouseDragged(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_DRAGGED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

@@ -393,7 +393,7 @@ public void mouseWheelMoved(MouseEvent e) {
if (underlayWindowMap.containsKey(s)) {
WindowImpl overlayWindow = underlayWindowMap.get(s);
overlayWindow.sendMouseEvent(MouseEvent.EVENT_MOUSE_WHEEL_MOVED, 0,
e.getX(), e.getY(), (short) 0, 0);
e.getX(), e.getY(), e.getButton(), 0);
}
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.