[sushi: 1/2] mainWindow: explicitly hide minimize and maximize



commit 835a57bdf693cbc4cd4ee24886bb581e84b6a4a3
Author: Will Thompson <wjt endlessm com>
Date:   Wed Feb 6 20:57:57 2019 +0000

    mainWindow: explicitly hide minimize and maximize
    
    Otherwise, on systems which enable these buttons by default, they appear
    but work poorly.
    
    Fixes #3.

 src/js/ui/mainWindow.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index c64f2f6..ac09d16 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -76,7 +76,9 @@ var MainWindow = new Lang.Class({
                                            windowPosition: Gtk.WindowPosition.CENTER,
                                            gravity: Gdk.Gravity.CENTER,
                                            application: this._application });
-        this._titlebar = new Gtk.HeaderBar({ show_close_button: true });
+        this._titlebar = new Gtk.HeaderBar({ show_close_button: true,
+                                           // don't support maximize and minimize
+                                             decoration_layout: "menu:close" });
         this._gtkWindow.set_titlebar(this._titlebar);
 
         let screen = Gdk.Screen.get_default();


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