Bug 313023 - Click events not sent to the right widget when using OpenGL
Summary: Click events not sent to the right widget when using OpenGL
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Necessitas
Classification: Applications
Component: Android Qt4 (show other bugs)
Version: beta1
Platform: Other Linux
: NOR normal
Target Milestone: Unspecified
Assignee: BogDan Vatra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 15:53 UTC by Gabi Julien
Modified: 2018-09-04 16:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proposed patch (4.93 KB, text/plain)
2013-01-10 15:53 UTC, Gabi Julien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabi Julien 2013-01-10 15:53:09 UTC
Created attachment 76368 [details]
Proposed patch

As opposed to the platforms/android/libandroid-9.so plugin, libandroidGL-9.so does not have an implementation for QPlatformScreen::topLevelAt. Unfortunately, the default implementation does not store a Z ordered stack of all widgets and so it might not return the right one.

Procedure:
1. Create a Qt app for Android 4.0 that uses OpenGL (libQtOpenGL.so and libandroidGL-9.so are loaded).
2. Add lots of widgets or dialogs on top of each other.
3. Raise widgets to change the Z ordering randomly.
4. Click on the top level widget.

Outcome:
- The click event might be sent to the wrong widget.

I will attach a patch.
Comment 1 BogDan Vatra 2013-01-10 17:07:12 UTC
Current implementation of OpenGL doesn't support more than one top level window.
Please post it to https://git.reviewboard.kde.org/dashboard/ for reviewing.
Comment 2 Andrew Crouthamel 2018-09-04 16:15:09 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years and I will be closing this bug.