コード例 #1
0
ファイル: Program.cs プロジェクト: bjaminn/cswm
        void OnConfigureRequest(X11.XConfigureRequestEvent ev)
        {
            var changes = new X11.XWindowChanges
            {
                x            = ev.x,
                y            = ev.y,
                width        = ev.width,
                height       = ev.height,
                border_width = ev.border_width,
                sibling      = ev.above,
                stack_mode   = ev.detail
            };

            if (this.WindowIndexByClient.ContainsKey(ev.window))
            {
                // Resize the frame
                Xlib.XConfigureWindow(this.display, this.WindowIndexByClient[ev.window].frame, ev.value_mask, ref changes);
            }
            // Resize the window
            Xlib.XConfigureWindow(this.display, ev.window, ev.value_mask, ref changes);
        }
コード例 #2
0
 public static extern int XConfigureWindow(IntPtr display, Window window, ulong value_mask, ref XWindowChanges changes);