Exemple #1
0
        public override void PlaceWindow(Gtk.Window window, int x, int y, int width, int height)
        {
            NSWindow w  = GtkQuartz.GetWindow(window);
            var      dr = FromDesktopRect(new Gdk.Rectangle(x, y, width, height));
            var      r  = w.FrameRectFor(dr);

            w.SetFrame(r, true);
            base.PlaceWindow(window, x, y, width, height);
        }
Exemple #2
0
        public override void PlaceWindow(Gtk.Window window, int x, int y, int width, int height)
        {
            if (window.GdkWindow == null)
            {
                return;                 // Not yet realized
            }
            NSWindow w  = GtkQuartz.GetWindow(window);
            var      dr = FromDesktopRect(new Gdk.Rectangle(x, y, width, height));
            var      r  = w.FrameRectFor(dr);

            w.SetFrame(r, true);
            base.PlaceWindow(window, x, y, width, height);
        }