Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

DialogWindow

  • Loading branch information...
commit 881c6f080997cbd3fcbc69d973ca2eec26dd0ea0 1 parent 0118e67
@NotFound authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/Guitor.winxed
View
16 src/Guitor.winxed
@@ -1976,6 +1976,22 @@ class TopLevelWindow : ListenerWindow
}
}
+class DialogWindow : TopLevelWindow
+{
+ function DialogWindow(mainwindow, title,
+ int x, int y, int width, int height,
+ style[optional])
+ {
+ self.TopLevelWindow(mainwindow.controller, title,
+ x, y, width, height, style);
+ self.SetTransientFor(mainwindow);
+ self.display.ChangePropertyInt32(self.getDID(),
+ self.InternAtom("_NET_WM_WINDOW_TYPE"),
+ XA_ATOM, PropModeReplace,
+ self.InternAtom("_NET_WM_WINDOW_TYPE_DIALOG"));
+ }
+}
+
class ChildWindow : ListenerWindow
{
function ChildWindow(parent, int x, int y, int width, int height,
Please sign in to comment.
Something went wrong with that request. Please try again.