Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Kukol <sevoku@microsoft.com>2019-01-24 20:30:19 +0300
committerVsevolod Kukol <sevoku@microsoft.com>2019-01-24 20:30:19 +0300
commit3add8f8b5185b4d66ef32cc3e53466eba5d5ee40 (patch)
treeb0f81969021ef74c777d2d03a434f12b44e6b568 /Xwt.Gtk
parent0bb3624360311e682396231f1b93e7eaa3b724c5 (diff)
[Gtk] Fix Widget.ConvertToXCoordinates
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
index 97a8f983..b62207af 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/WidgetBackend.cs
@@ -320,7 +320,7 @@ namespace Xwt.GtkBackend
int x = 0, y = 0;
if (RootWidget?.Parent != null)
Widget.TranslateCoordinates (RootWidget.Parent, x, y, out x, out y);
- return new Point (x, y);
+ return new Point (x + widgetCoordinates.X, y + widgetCoordinates.Y);
}
public Point ConvertToWindowCoordinates (Point widgetCoordinates)
@@ -328,7 +328,7 @@ namespace Xwt.GtkBackend
int x = 0, y = 0;
if (RootWidget?.Toplevel != null)
Widget.TranslateCoordinates (RootWidget.Toplevel, x, y, out x, out y);
- return new Point (x, y);
+ return new Point (x + widgetCoordinates.X, y + widgetCoordinates.Y);
}
public Point ConvertToScreenCoordinates (Point widgetCoordinates)