4 using bytex64.WebThing;
6 public class Fullscreen : WebThingPlugin {
7 private bool IsFullscreen = false;
8 private Gtk.Window Win;
10 public override void Init(WebThing wt) {
12 Win.KeyPressEvent += Win_KeyPress;
13 Win.WindowStateEvent += Win_WindowState;
16 private void Win_KeyPress(object o, KeyPressEventArgs e) {
17 if (e.Event.State == Gdk.ModifierType.None) {
30 private void Win_WindowState(object o, WindowStateEventArgs e) {
31 IsFullscreen = (e.Event.NewWindowState & WindowState.Fullscreen) != 0;