Permalink
Browse files

fix panels not being covered by fullscreen windows in certain situations

  • Loading branch information...
1 parent 2d336f8 commit b50c2541d4aacca83d4f80b53326c21ac72f180f @Cobinja committed Sep 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/ui/layout.js
View
@@ -966,18 +966,18 @@ Chrome.prototype = {
for (let i = windows.length - 1; i > -1; i--) {
let window = windows[i];
- let layer = window.get_meta_window().get_layer();
+ let metaWindow = window.get_meta_window();
// Skip minimized windows
if (!window.showing_on_its_workspace())
continue;
- if (layer == Meta.StackLayer.FULLSCREEN) {
+ if (metaWindow.is_fullscreen()) {
let monitor = this._findMonitorForWindow(window);
if (monitor)
monitor.inFullscreen = true;
}
- if (layer == Meta.StackLayer.OVERRIDE_REDIRECT) {
+ if (metaWindow.is_override_redirect()) {
// Check whether the window is screen sized
let isScreenSized =
(window.x == 0 && window.y == 0 &&

0 comments on commit b50c254

Please sign in to comment.