[sushi/wip/cosimoc/no-clutter: 57/67] mainWindow: don't cache window size
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/wip/cosimoc/no-clutter: 57/67] mainWindow: don't cache window size
- Date: Mon, 30 Apr 2018 15:18:26 +0000 (UTC)
commit f26a5a9e40a65136d17e8610e6b0671a9e796a43
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Apr 8 22:05:10 2017 -0700
mainWindow: don't cache window size
Request resizing without caching the size; window sizing is asynchronous
and our state is incorrect.
src/js/ui/mainWindow.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 5ab8275..f4ba6d7 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -177,13 +177,9 @@ const MainWindow = new Lang.Class({
return;
let windowSize = this._getWindowSize();
-
- if (this._lastWindowSize &&
- windowSize[0] == this._lastWindowSize[0] &&
- windowSize[1] == this._lastWindowSize[1])
+ if (windowSize[0] <= 0 || windowSize[1] <= 0)
return;
- this._lastWindowSize = windowSize;
this.resize(windowSize[0], windowSize[1]);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]