[gnome-shell-extensions] auto-move-windows: Respect keep-alive flag in checkWorkspaces
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] auto-move-windows: Respect keep-alive flag in checkWorkspaces
- Date: Thu, 24 Apr 2014 17:16:42 +0000 (UTC)
commit 7f008aa3ff3dfdc73166ea99018303d4b0cd37cf
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Apr 24 12:25:10 2014 +0200
auto-move-windows: Respect keep-alive flag in checkWorkspaces
https://bugzilla.gnome.org/show_bug.cgi?id=728865
extensions/auto-move-windows/extension.js | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
index 8c502a6..df2a88f 100644
--- a/extensions/auto-move-windows/extension.js
+++ b/extensions/auto-move-windows/extension.js
@@ -97,13 +97,14 @@ function myCheckWorkspaces() {
}
for (i = 0; i < this._workspaces.length; i++) {
- let lastRemoved = this._workspaces[i]._lastRemovedWindow;
- if (lastRemoved &&
- (lastRemoved.get_window_type() == Meta.WindowType.SPLASHSCREEN ||
- lastRemoved.get_window_type() == Meta.WindowType.DIALOG ||
- lastRemoved.get_window_type() == Meta.WindowType.MODAL_DIALOG))
+ let lastRemoved = this._workspaces[i]._lastRemovedWindow;
+ if ((lastRemoved &&
+ (lastRemoved.get_window_type() == Meta.WindowType.SPLASHSCREEN ||
+ lastRemoved.get_window_type() == Meta.WindowType.DIALOG ||
+ lastRemoved.get_window_type() == Meta.WindowType.MODAL_DIALOG)) ||
+ this._workspaces[i]._keepAliveId)
emptyWorkspaces[i] = false;
- else
+ else
emptyWorkspaces[i] = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]