Scrollbar behaviour of canvas on grab_focus

Hello,
currently I’m stuck to GTK3.
I have a main window which contains a scrolled window which in turn contains a canvas. The scrollbars work fine except one thing:
Whenever the canvas grabs the focus (by canvas.grab_focus) the scrollbars jump to their lower limit. One solution is to backup the scrollbar values, then grab focus, then restore the scrollbar values. Is there a more professional way ?

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