From 4854b6151dab7b17e6cd6b5857c3c829e15d5a19 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Fri, 14 Jul 2017 21:37:50 +0300 Subject: [PATCH] desktop sharing - area selection fix --- toxygen/menu.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toxygen/menu.py b/toxygen/menu.py index b361154..3707706 100644 --- a/toxygen/menu.py +++ b/toxygen/menu.py @@ -810,7 +810,7 @@ class DesktopAreaSelectionWindow(RubberBandWindow): rect = self.rubberband.geometry() width, height = rect.width(), rect.height() if width >= 8 and height >= 8: - self.parent.save(width, height) + self.parent.save(rect.x(), rect.y(), width, height) self.close() @@ -891,12 +891,14 @@ class VideoSettings(CenteredWidget): except Exception as ex: print('Saving video settings error: ' + str(ex)) - def save(self, width, height): + def save(self, x, y, width, height): self.desktopAreaSelection = None settings = Settings.get_instance() settings.video['device'] = -1 settings.video['width'] = width settings.video['height'] = height + settings.video['x'] = x + settings.video['y'] = y settings.save() def selectionChanged(self):