This adds simple fullscreen support by zooming our window (window border
is still present).

François.
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.8
diff -u -r1.8 haiku.cpp
--- haiku.cpp	29 Jan 2014 22:53:57 -0000	1.8
+++ haiku.cpp	30 Jan 2014 09:51:09 -0000
@@ -853,6 +853,14 @@
     b->priv_data = NULL;
 }
 
+static void haiku_full_screen(QEditScreen *s, int full_screen)
+{
+    WindowState *ctx = (WindowState *)s->priv_data;
+
+    BMessenger msgr(ctx->v->Looper());
+    msgr.SendMessage(B_ZOOM);
+}
+
 static QEDisplay haiku_dpy = {
     "haiku",
     haiku_probe,
@@ -875,7 +883,7 @@
     NULL, /* dpy_bmp_draw */
     NULL, /* dpy_bmp_lock */
     NULL, /* dpy_bmp_unlock */
-    NULL, /* dpy_full_screen */
+    haiku_full_screen,
     NULL, /* next */
 };
 
_______________________________________________
Qemacs-devel mailing list
Qemacs-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemacs-devel

Reply via email to