wrong object coordinates if the app goes fullscreen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
kevin gunn | ||
qtubuntu (Ubuntu) |
Fix Released
|
Critical
|
Daniel d'Andrada |
Bug Description
While investigating autopilot test failures in gallery-app on Ubuntu Touch (see bug #1422418), I observed that a menu was being open, and the wrong menu item was being pressed (the item below the targetted one was being pressed). I realized that what seemed to have introduced the regression was a change in the app whereby it would go fullscreen at a given point in time during its execution. When the app goes fullscreen on Ubuntu Touch, the top indicators bar disappears, thus moving the window upwards by 41px (on krillin)). It seems that when the app does that, autopilot gets the coordinates for objects on screen as if the window hadn’t moved, and therefore clicks don’t happen where they are expected. Could it be that the absolute coordinates of the window are cached and not updated when it goes fullscreen?
Related branches
- Florian Boucault (community): Approve
- Gerry Boland (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 56 lines (+27/-1)2 files modifiedsrc/ubuntumirclient/window.cpp (+26/-1)
src/ubuntumirclient/window.h (+1/-0)
Changed in qtubuntu: | |
importance: | Undecided → Critical |
status: | Confirmed → Triaged |
Changed in qtmir: | |
status: | Confirmed → Invalid |
no longer affects: | qtmir |
Changed in qtubuntu: | |
status: | Triaged → In Progress |
assignee: | nobody → Daniel d'Andrada (dandrader) |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Critical |
milestone: | none → ww02-2016 |
assignee: | nobody → kevin gunn (kgunn72) |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in qtubuntu: | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
affects: | qtubuntu → qtubuntu (Ubuntu) |
Just confirmed my suspicion by printing the app’s main view globalRect property before it goes fullscreen and after:
- before: Rectangle(0, 41, 540, 919)
- after: Rectangle(0, 41, 540, 960)
It appears the height is correctly updated, but not the y coordinate.