Critical messages when destroying window with selected text
Steps to reproduce
- Create a window with a textview inside and a 'Quit' menu that has an accelerator key (e.g: Ctrl-Q). The 'Quit' menu destroys the window.
- Drag the left mouse button on the text to select some text in the textview
- Hit Ctrl+Q while still holding the left mouse button
I have a patch ready for that: can I directly attach it to the issue?
Current behavior
Gtk emits several warnings like this: "Gtk-CRITICAL **: gtk_text_mark_get_buffer: assertion 'GTK_IS_TEXT_MARK (mark)' failed"
Expected outcome
These warnings should not be emitted.
Version information
Gtk 3.22.30