< prev index next >

modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp

Print this page

        

@@ -1174,12 +1174,11 @@
             newX = windowChanges->x;
         }
         if (windowChangesMask & CWY) {
             newY = windowChanges->y;
         }
-
-        gtk_window_move(GTK_WINDOW(gtk_widget), newX, newY);
+        gdk_window_move(gdk_window, newX, newY);
     }
 
     if (windowChangesMask & (CWWidth | CWHeight)) {
         gint newWidth, newHeight;
         gtk_window_get_size(GTK_WINDOW(gtk_widget), &newWidth, &newHeight);

@@ -1196,11 +1195,11 @@
             GdkWindowHints hints = (GdkWindowHints)(GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
             geom.min_width = geom.max_width = newWidth;
             geom.min_height = geom.max_height = newHeight;
             gtk_window_set_geometry_hints(GTK_WINDOW(gtk_widget), NULL, &geom, hints);
         }
-        gtk_window_resize(GTK_WINDOW(gtk_widget), newWidth, newHeight);
+        gdk_window_resize(gdk_window, newWidth, newHeight);
     }
 }
 
 void WindowContextTop::applyShapeMask(void* data, uint width, uint height)
 {
< prev index next >