diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js index 7aa45919b..5cd6802e6 100644 --- a/js/ui/windowMenu.js +++ b/js/ui/windowMenu.js @@ -214,7 +214,7 @@ const WindowMenuManager = new Lang.Class({ menu.close(); }); - this._sourceActor.set_size(rect.width, rect.height); + this._sourceActor.set_size(Math.max(1, rect.width), Math.max(1, rect.height)); this._sourceActor.set_position(rect.x, rect.y); this._sourceActor.show();