mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 20:22:38 +01:00
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From e35fda4f884efa1237b6729395a99ea85cc7872f Mon Sep 17 00:00:00 2001
|
|
From: Jente Hidskes <hjdskes@gmail.com>
|
|
Date: Mon, 28 Aug 2017 12:41:09 +0200
|
|
Subject: [PATCH 03/30] 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.
|
|
---
|
|
piper/mousemap.py | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/piper/mousemap.py b/piper/mousemap.py
|
|
index 7b122ba..0d8fbb5 100644
|
|
--- a/piper/mousemap.py
|
|
+++ b/piper/mousemap.py
|
|
@@ -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
|
|
--
|
|
2.16.1
|
|
|