rnote icon indicating copy to clipboard operation
rnote copied to clipboard

[GTK4 bug] Popover menus are broken on X.Org

Open Mat931 opened this issue 3 years ago • 1 comments

There are multiple symptoms and ways to reproduce it but i think this is just one bug

To Reproduce Steps to reproduce the behavior:

  1. Select xorg when logging in (this bug does not affect wayland)
  2. Open some other programs
  3. Open rnote
  4. Open any popover menu in rnote
  5. Try to click another program outside of rnote

The popover menu stays open and all mouse and keyboard inputs to other programs are blocked until you close the menu in rnote If you have rnote on another monitor you might think your system is frozen

  1. Close the menu by clicking anywhere inside of rnote or pressing Esc
  2. Try to add a new color by using 'Pick a color from the screen'
  3. Click anywhere to pick a color (this doesn't work)
  4. Close the color selector menu

Now the mouse and keyboard inputs to all other programs are blocked even if no popover menu is open

  1. Close rnote
  2. Inputs to some other programs are working again but you can't click anything in the ubuntu dock or the gnome panel
  3. Restart gnome with Alt+F2, r

After the restart everything is working again

Expected behavior

  • The popover menu should close when clicking anywhere outside of rnote and you should be able to click things in other programs
  • Pressing Esc should abort the color picker
  • Closing rnote should not leave gnome in a broken state

Console Output No new console output while testing the bug

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Installation source: Flatpak
  • Desktop Environment: GNOME Shell 3.36.9

Mat931 avatar Feb 18 '22 12:02 Mat931

I can reproduce, but this seems to be the behaviour of all GTK4 apps (tested with spot and notejot). (see this issue). Can't do much on Rnote's side, unfortunately.

There is also the nested popover bug, which can be observed when changing the probability distribution of textured brush strokes. Its issue is this

flxzt avatar Feb 18 '22 13:02 flxzt

The renaming popover has this issue too which makes it unusable on touchscreens. Would it be possible to switch to something like what Portfolio does?

Bildschirmaufzeichnung vom 2023-03-15, 17-02-56.webm

PhilDevProg avatar Mar 15 '23 13:03 PhilDevProg

Also, see https://gitlab.gnome.org/GNOME/gtk/-/issues/5666 for Wayland.

PhilDevProg avatar Mar 16 '23 15:03 PhilDevProg