layoutManager: Treat screen_sized OR windows as fullscreen
https://bugzilla.gnome.org/show_bug.cgi?id=660166
This commit is contained in:
parent
32dc24c59b
commit
1e2d16273c
@ -825,6 +825,13 @@ Chrome.prototype = {
|
|||||||
monitor.inFullscreen = true;
|
monitor.inFullscreen = true;
|
||||||
}
|
}
|
||||||
if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
|
if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
|
||||||
|
// Check whether the window is screen sized
|
||||||
|
if (window.x == 0 && window.y == 0 &&
|
||||||
|
window.width == global.screen_width &&
|
||||||
|
window.height == global.screen_height)
|
||||||
|
monitor.inFullscreen = true;
|
||||||
|
|
||||||
|
// Or whether it is monitor sized
|
||||||
let monitor = this._findMonitorForWindow(window);
|
let monitor = this._findMonitorForWindow(window);
|
||||||
if (monitor &&
|
if (monitor &&
|
||||||
window.x <= monitor.x &&
|
window.x <= monitor.x &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user