浏览代码

Fix: SetShape() for GTK to make windows move- and resizable (#67)

Ronny Otto 2 年之前
父节点
当前提交
c8b0edf7c5
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      gtk3maxgui.mod/gtkgadget.bmx

+ 10 - 0
gtk3maxgui.mod/gtkgadget.bmx

@@ -810,6 +810,16 @@ Type TGTKWindow Extends TGTKContainer
 			ignoreSizeEvent = True
 		End If
 		Super.SetShape(Max(x, 0), Max(y, 0), w, h)
+
+		'actually move/resize
+		'using the ignore* saves from backupping old position
+		'and sizes before calling "SetShape()"
+		If ignoreMoveEvent Then
+			gtk_window_move(handle, x, y)
+		End If
+		If ignoreSizeEvent Then
+			gtk_window_resize(handle, w, h)
+		End If
 	End Method
 
 	Rem