diff --git a/js/ui/chrome.js b/js/ui/chrome.js index 2e57456cf..50e0e79b3 100644 --- a/js/ui/chrome.js +++ b/js/ui/chrome.js @@ -208,9 +208,14 @@ Chrome.prototype = { this._obscuredByFullscreen = false; for (let i = windows.length - 1; i > -1; i--) { let layer = windows[i].get_meta_window().get_layer(); - - if (layer == Meta.StackLayer.OVERRIDE_REDIRECT || - layer == Meta.StackLayer.FULLSCREEN) { + if (layer == Meta.StackLayer.FULLSCREEN) { + if (windows[i].x >= primary.x && windows[i].x <= primary.x + primary.width && + windows[i].y >= primary.y && windows[i].y <= primary.y + primary.height) { + this._obscuredByFullscreen = true; + break; + } + } + if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) { if (windows[i].x <= primary.x && windows[i].x + windows[i].width >= primary.x + primary.width && windows[i].y <= primary.y &&