commit | eb5d80847e4b2f685a6a5ff5ddc31f155062673a | [log] [tgz] |
---|---|---|
author | Ian Pun <ipun@redhat.com> | Thu Apr 27 19:02:09 2017 +0530 |
committer | Ian Pun <ipun@redhat.com> | Tue May 09 11:24:56 2017 -0400 |
tree | a85b294ba0ff5ff307f89f5050bf411168974d33 | |
parent | 522e51fc512bad24a2056f31b81ba8c3793c0a54 [diff] |
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>
Thanks for your interest in this project.
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.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!