diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-08-05 15:14:44 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-08-05 16:23:14 +0800 |
commit | d2291abe2aa55f00b80caee8491055738c95d8e8 (patch) | |
tree | ecafc7f242909672d5caae3c0ac0fda6b1835977 | |
parent | 5ce0098adccbb26e8939c4e35278e25437a33205 (diff) | |
download | gtk+-d2291abe2aa55f00b80caee8491055738c95d8e8.tar.gz |
gdksurface-win32.c: Fix resizing
Use gdk_surface_get_geometry() to get the correct x and y coordinates of the
window that we are resizing, so that the window does not reposition itself
automatically at the top-left corner at resizing as we to used hard-code the x
and y coordinates to 0.
-rw-r--r-- | gdk/win32/gdksurface-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index bcee5ce242..5a61919d95 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -217,7 +217,7 @@ _gdk_win32_get_window_client_area_rect (GdkSurface *window, { int x, y, width, height; - x = y = 0; + gdk_surface_get_geometry (window, &x, &y, NULL, NULL); width = gdk_surface_get_width (window); height = gdk_surface_get_height (window); rect->left = x * scale; |