[polari/wip/fmuellner/window-experiments: 346/356] app: Stop assuming a single main window

commit 3808de481b9f8894a178911ca15669b3fce75a70
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 14 16:04:43 2016 +0200

    app: Stop assuming a single main window
    We will eventually allow opening multiple windows, to make it possible
    to observe different rooms at the same time (e.g. via tiling/multiple
    monitors) - obviously the current assumption of a single main window
    conflicts with that, so adapt the code to either use the :active-window
    or iterate over all windows as appropriate.

 src/application.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/application.js b/src/application.js
index 4e98621..3cb65ad 100644
--- a/src/application.js
+++ b/src/application.js
@@ -284,7 +284,7 @@ const Application = new Lang.Class({
     vfunc_window_removed: function(window) {
-        if (this._settings.get_boolean('run-in-background'))
+        if (this._settings.get_boolean('run-in-background') || this.active_window)

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