Bug 514483 - [wayland] Launchbar filter closes when clicked

GetCursorLocation() was returning wrong coordinates. In Wayland
applications do not share a global coordinate, instead it is relative to
the parent window. The position of the cursor was returning relative to
the popup window and not of the parent window, causing the LaunchBar
logic to think that we are clicking outside of the popup window, thus
closing it. Fixed by using the relative position as an offset and adding
it to the position of the popup window, which will return the correct
coordinates.

Testing this can be done through snippetA in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=514483 . 

Tested with Junits on Wayland with no additional failures/errors.

Change-Id: I9bfb2052e59de38a93f75cc624759b41885ae2a6
Signed-off-by: Ian Pun <ipun@redhat.com>
1 file changed
tree: a85b294ba0ff5ff307f89f5050bf411168974d33
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!