mirror of
https://github.com/libratbag/piper.git
synced 2026-04-22 23:38:00 -04:00
MouseMap: redraw on allocate
In a previous commit I added this optimization that prevents redrawing the widget when it is reallocated: with the widget being centered, enlarging the window does not require to redraw the widget. However, I missed the case where the allocation actually gets smaller (and thus the SVG is repositioned) when the width of one of the child widgets changes, which would with this optimization result in parts of the SVG being shifted a few pixels to the left with the remainder being in its original position. Hence, this fixes a visual glitch in drawing the SVG.
This commit is contained in:
committed by
Peter Hutterer
parent
1c75b90db9
commit
e35fda4f88
@@ -112,7 +112,6 @@ class MouseMap(Gtk.Container):
|
||||
|
||||
Gtk.Container.__init__(self, *args, **kwargs)
|
||||
self.set_has_window(False)
|
||||
self.set_redraw_on_allocate(False)
|
||||
|
||||
self.spacing = spacing
|
||||
self._layer = layer
|
||||
|
||||
Reference in New Issue
Block a user