[sushi] Make sushi work under Wayland



commit 0e3a84784773ce15f628c21614435eccbed15fb9
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 25 15:45:57 2016 -0400

    Make sushi work under Wayland
    
    move_to_current_desktop is x11 backend api. We can't call it
    unconditionally.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766750

 src/js/ui/mainWindow.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 0037ce3..651cb32 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -544,7 +544,8 @@ const MainWindow = new Lang.Class({
             this._gtkWindow.get_window().set_transient_for(this._parent);
         this._gtkWindow.show_all();
 
-        this._gtkWindow.get_window().move_to_current_desktop();
+        if (this._gtkWindow.get_window().move_to_current_desktop)
+          this._gtkWindow.get_window().move_to_current_desktop();
     },
 
     setFile : function(file) {


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