internal override void GrabWindow(IntPtr handle, IntPtr confine_to_handle) { X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle); X11Hwnd confine_to_hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(confine_to_handle); display.GrabWindow(hwnd, confine_to_hwnd); }