scrolling mishandled during focus changes
I'm not sure if all of the elements mentioned below are necessary to trigger the bug; in fact, I expect most aren't, but still mentioning them all.
So, the hierarchy first: Listbox > ScrolledWindow > Box > Stack > Box > Window.
My window manager is set to 'focus-follows-mouse'.
So, I start a ruby-gtk4 script in a terminal, that shows a gui (gui hierarchy is somewhat convoluted, due to my desire to keep things simple as I was writing it). I move the mouse back to the terminal. ^Z; bg <task id>
. I get to that listbox, that has been filled with a lengthy list of elements. I pick one of them.
I get back to the terminal. I run a command that has multiple lines of output, that I redirect into less
.
I scroll for a bit through that content using mouse wheel.
Now for the bug.
After that bit of scrolling I move the mouse back into gui. I attempt to scroll the listbox with the wheel a little bit more.
Now, what happens, is the listbox gets scrolled a huge amount. I haven't checked the numbers, but I strongly suspect all the scrolling in the terminal gets duplicated into the listbox.
Well, that's pretty much it.
On unrelated note, quite often while running that script I get output like gtk_css_node_insert_after: assertion 'previous_sibling == NULL || previous_sibling->parent == parent' failed
or Trying to snapshot GtkGizmo 0x55f43a168c00 without a current allocation
, Any ideas what could be causing those ? After I've initialized the gui, I'm not doing any hierarchy changes or adding/removing widgets...