overview: Remove unneeded check if primary monitor exists

This check is no longer needed because we're using the stage size
instead of the monitor size here.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/374
This commit is contained in:
verdre 2019-01-30 00:17:20 +01:00 committed by Florian Müllner
parent 69b1fb699f
commit 5f4e2749a2

View File

@ -387,9 +387,6 @@ var Overview = class {
// when it is next shown. // when it is next shown.
this.hide(); this.hide();
if (!Main.layoutManager.primaryMonitor)
return;
this._coverPane.set_position(0, 0); this._coverPane.set_position(0, 0);
this._coverPane.set_size(global.screen_width, global.screen_height); this._coverPane.set_size(global.screen_width, global.screen_height);