[Gtkmm4.0]Why does the button always be in the pressed state when holding the left-mouse button and then moving out of window?

Why the button always is pressed state when holding the left-mouse button and then moving out of window?
123

Using the simplest official sample
按钮(Button) (gnome.org)

There’s an implicit grab taken when you press a button and move the pointer around with the mouse button still pressed. This is used so the toolkit knows whether you left the widget when you release the button or not. The visual indication of that behaviour is that the button remains in the “active” state, even when you leave the widget’s area.

1 Like

TKS, I replace button with Frame.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.