After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785173 - gnome shell: folder's popup arrow misplaced after first time opening the folder
gnome shell: folder's popup arrow misplaced after first time opening the folder
Status: RESOLVED DUPLICATE of bug 778323
Product: gnome-shell
Classification: Core
Component: overview
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-07-20 14:56 UTC by Mario Sánchez Prada
Modified: 2017-07-20 17:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
1st run: Folder is open and arrow is in the right place (505.91 KB, image/png)
2017-07-20 14:56 UTC, Mario Sánchez Prada
Details
2nd run: Folder is open and arrow is in the WRONG place (505.92 KB, image/png)
2017-07-20 14:57 UTC, Mario Sánchez Prada
Details

Description Mario Sánchez Prada 2017-07-20 14:56:09 UTC
The first time a folder is opened the arrow of the popup containing the apps (BoxPointer) is correctly placed pointing to the folder in the apps view.

However, closing the folder and re-opening it again (which reuses the instance of AppFolderPopup) causes the arrow to be rendered in the wrong place while the folder is open. From this state, it can be seen how the arrow gets back to its place for a split second when the popup is closed, though, so this might be a problem with some miscalculation at the time it's opening only.

After reaching this point, any further attempt to open the same folder without leaving the overview results in the same broken behaviour described in the previous paragraph.
Comment 1 Mario Sánchez Prada 2017-07-20 14:56:53 UTC
Created attachment 356050 [details]
1st run: Folder is open and arrow is in the right place
Comment 2 Mario Sánchez Prada 2017-07-20 14:57:29 UTC
Created attachment 356051 [details]
2nd run: Folder is open and arrow is in the WRONG place
Comment 3 Mario Sánchez Prada 2017-07-20 15:02:29 UTC
For extra reference, I've been debugging this for a while and it seems that the issue is happening because the call to clutter_actor_get_transformed_position() in https://git.gnome.org/browse/gnome-shell/tree/js/ui/boxpointer.js#n245 is returning wrong values for some reason when opening the folder from the 2nd time on.

I haven't quite figured out yet why that's the case, but printing the values of absX and absY and experimenting with hardcoding some values there for debugging purposes seem to clearly suggest that this is where things get broken.
Comment 4 Florian Müllner 2017-07-20 17:04:37 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 778323 ***