< prev index next >

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

Print this page

        

*** 1174,1185 **** newX = windowChanges->x; } if (windowChangesMask & CWY) { newY = windowChanges->y; } ! ! gtk_window_move(GTK_WINDOW(gtk_widget), newX, newY); } if (windowChangesMask & (CWWidth | CWHeight)) { gint newWidth, newHeight; gtk_window_get_size(GTK_WINDOW(gtk_widget), &newWidth, &newHeight); --- 1174,1184 ---- newX = windowChanges->x; } if (windowChangesMask & CWY) { newY = windowChanges->y; } ! 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,1206 **** 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); } } void WindowContextTop::applyShapeMask(void* data, uint width, uint height) { --- 1195,1205 ---- 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); } ! gdk_window_resize(gdk_window, newWidth, newHeight); } } void WindowContextTop::applyShapeMask(void* data, uint width, uint height) {
< prev index next >