layout: Fix setting fullscreen for screen sized windows
We have to set the flag for all monitors in that case.
This commit is contained in:
parent
f0c1eeece8
commit
b43dcb8876
@ -826,10 +826,15 @@ Chrome.prototype = {
|
|||||||
}
|
}
|
||||||
if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
|
if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
|
||||||
// Check whether the window is screen sized
|
// Check whether the window is screen sized
|
||||||
if (window.x == 0 && window.y == 0 &&
|
let isScreenSized =
|
||||||
|
(window.x == 0 && window.y == 0 &&
|
||||||
window.width == global.screen_width &&
|
window.width == global.screen_width &&
|
||||||
window.height == global.screen_height)
|
window.height == global.screen_height);
|
||||||
monitor.inFullscreen = true;
|
|
||||||
|
if (isScreenSized) {
|
||||||
|
for (let i = 0; i < this._monitors.length; i++)
|
||||||
|
this._monitors[i].inFullscreen = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Or whether it is monitor sized
|
// Or whether it is monitor sized
|
||||||
let monitor = this._findMonitorForWindow(window);
|
let monitor = this._findMonitorForWindow(window);
|
||||||
|
Loading…
Reference in New Issue
Block a user