Mono winforms app fullscreen in Ubuntu?

前端 未结 10 2318

Just wondering if there\'s a known way of getting a Mono System.Windows.Forms application to go fullscreen on Ubuntu/Gnome.

Mono is 2.4.2.3 Ubuntu is 9.10

Doing

10条回答
  •  孤独总比滥情好
    2021-02-08 12:01

    _NET_WM_STATE_FULLSCREEN will just get rid of the borders. The GNOME panel will still appear.

    According to the following post, the secret is to get rid of the minimum/maximum sizes so that the window manager does the resizing itself:

    http://linux.derkeiler.com/Mailing-Lists/GNOME/2010-01/msg00035.html

    Here is some documentation on the native spec:

    http://standards.freedesktop.org/wm-spec/wm-spec-latest.html

    http://www.x.org/docs/ICCCM/icccm.pdf

    To talk directly to the X Window System you have to pinvoke into XLib. In order to send something like _NET_WM_STATE_FULLSCREEN you have to have a pointer to the window and also to the display.

    I am not sure how to find the display but I can help with a pointer to the window. When running on X, the property Form.Handle should be a pointer to the X window.

提交回复
热议问题