c# - Run GTK# Application in Kiosk Mode -


i writing c#/mono app (gtk# gui) raspberry pi. want run app in kiosk mode (fullscreen, no metacity/ window borders, unable exit). how work under linux/raspian? in windows using wpf can set window borderless , maximize it. havn´t found similar property on gtk-window.

this works on os-x, not have linux box double-check right now, should same:

using system; using gtk;  namespace gtkfullscreennotdecorated {     class mainclass     {         public static void main (string[] args)         {             application.init ();             mainwindow win = new mainwindow ();             win.show ();             win.fullscreen ();             win.decorated = false;             application.run ();         }     } } 

the main thing win.fullscreen. in full screen, gtk2 window decoration not visible, add it. run , without performing win.fullscreen() see how display manager turning decoration off.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -