Incorrect pointer after resizing a server-decorated window and then opening/closing a GtkPopupMenu (X11 only)
Affected version
Ubuntu 23.04
Mutter 44.2-0ubuntu1 and 44.0.2ubuntu4
XOrg only
Bug summary
When opening then closing a GtkPopupMenu, the pointer will switch to 'resize' until you click in some other region or leave the window. This seems to only reliably occur immediately after the window is mapped, or after resizing it. This can be fixed by clicking on the titlebar - after that, the issue won't recur unless you resize the window again.
It's possible this should be filed with Gtk but it seemed to make more sense here.
This only appears to happen with server-decorated windows
Steps to reproduce
Download and run attached script 'test-wrong-pointer.py' test-wrong-pointer.py
-
Immediately after the window opens, click the menu button.
-
After menu opens, close the menu by clicking in the blank window area below the button.
-
Note the resize pointer instead of the normal one.
-
Click on the titlebar - this should fix the pointer.
-
Repeat opening/closing the menu, note that problem does not recur.
-
Now, resize the window (any direction)
-
Repeat opening/closing the menu, note the incorrect pointer again (the same one as was just used when you resized the window)
-
Clicking on the titlebar should fix the issue once more.
What happened
In certain scenarios the incorrect mouse pointer is being used when a popup menu is closed.
What did you expect to happen
The appropriate pointer.