[pitivi] timeline: Fix dot appearing when clicking on the timeline



commit 12dea0c87a5292ecca690cca9ef5caed576d9fba
Author: Thejas Kiran P S <thejaskiranps gmail com>
Date:   Fri Jun 3 16:39:37 2022 +0000

    timeline: Fix dot appearing when clicking on the timeline
    
    The dot caused by the selection Marquee still appears,
    but now it's under the mouse cursor. If the user releases the mouse button it is hidden, otherwise
    if the user moves the cursor to drag&drop then the
    Marquee starts to be visible.
    
    Fixes #2432

 pitivi/timeline/timeline.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 5eb90d206..a9af20e94 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -171,6 +171,7 @@ class Marquee(Gtk.Box, Loggable):
         self.start_x, self.start_y = event_widget.translate_coordinates(
             self._timeline.layout.layers_vbox, event.x, event.y)
         self.end_x, self.end_y = self.start_x, self.start_y
+        self.get_parent().move(self, self.start_x, self.start_y)
 
         self.props.width_request = 0
         self.props.height_request = 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]