[vte] app: Add option to disable window decorations



commit fe95bc7af1b0e70c0fc9254d41ed4f15ea0cfbb9
Author: Christian Persch <chpe src gnome org>
Date:   Sat Jul 18 13:52:55 2020 +0200

    app: Add option to disable window decorations
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/268

 src/app/app.cc | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index 1ab2dda0..470438b5 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -59,6 +59,7 @@ public:
         gboolean no_bold{false};
         gboolean no_builtin_dingus{false};
         gboolean no_context_menu{false};
+        gboolean no_decorations{false};
         gboolean no_double_buffer{false};
         gboolean no_geometry_hints{false};
         gboolean no_hyperlink{false};
@@ -523,6 +524,8 @@ public:
                           "Highlight URLs inside the terminal", nullptr },
                         { "no-context-menu", 0, 0, G_OPTION_ARG_NONE, &no_context_menu,
                           "Disable context menu", nullptr },
+                        { "no-decorations", 0, 0, G_OPTION_ARG_NONE, &no_decorations,
+                          "Disable window decorations", nullptr },
                         { "no-double-buffer", '2', 0, G_OPTION_ARG_NONE, &no_double_buffer,
                           "Disable double-buffering", nullptr },
                         { "no-geometry-hints", 'G', 0, G_OPTION_ARG_NONE, &no_geometry_hints,
@@ -1975,6 +1978,9 @@ vteapp_window_constructed(GObject *object)
 
         gtk_window_set_title(GTK_WINDOW(window), "Terminal");
 
+        if (options.no_decorations)
+                gtk_window_set_decorated(GTK_WINDOW(window), false);
+
         /* Create terminal and connect scrollbar */
         window->terminal = reinterpret_cast<VteTerminal*>(vteapp_terminal_new());
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]