[gtk/present-toplevel-2: 56/59] win32: misc fixes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 56/59] win32: misc fixes
- Date: Thu, 12 Mar 2020 19:02:07 +0000 (UTC)
commit 362369134db6347cadb90255adea438351881f85
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 12 08:32:45 2020 -0400
win32: misc fixes
gdk/win32/gdksurface-win32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 48f2182b38..da6b2eeb05 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -1805,7 +1805,7 @@ gdk_win32_surface_get_geometry (GdkSurface *window,
API_CALL (GetClientRect, (GDK_SURFACE_HWND (window), &rect));
POINT pt;
- GdkSurface *parent = gdk_surface_get_parent (window);
+ GdkSurface *parent = gdk_toplevel_get_parent (GDK_TOPLEVEL (window));
pt.x = rect.left;
pt.y = rect.top;
@@ -2665,7 +2665,7 @@ _gdk_win32_surface_handle_aerosnap (GdkSurface *window,
GdkWin32Surface *impl;
GdkDisplay *display;
gint n_monitors;
- GdkSurfaceState surface_state = gdk_surface_get_state (window);
+ GdkSurfaceState surface_state = gdk_toplevel_get_state (GDK_TOPLEVEL (window));
gboolean minimized = surface_state & GDK_SURFACE_STATE_MINIMIZED;
gboolean maximized = surface_state & GDK_SURFACE_STATE_MAXIMIZED;
gboolean halfsnapped;
@@ -3697,7 +3697,7 @@ setup_drag_move_resize_context (GdkSurface *window,
const gchar *cursor_name;
GdkSurface *pointer_window;
GdkWin32Surface *impl = GDK_WIN32_SURFACE (window);
- gboolean maximized = gdk_surface_get_state (window) & GDK_SURFACE_STATE_MAXIMIZED;
+ gboolean maximized = gdk_toplevel_get_state (GDK_TOPLEVEL (window)) & GDK_SURFACE_STATE_MAXIMIZED;
gint root_x, root_y;
gdk_win32_surface_get_root_coords (window, x, y, &root_x, &root_y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]