Advertisement
darkxst

fallback hotcorners

Mar 5th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.44 KB | None | 0 0
  1. From 7c9eb847a49e0ddbccc468f7a03777b3e1e20337 Mon Sep 17 00:00:00 2001
  2. From: Tim Lunn <tim@feathertop.org>
  3. Date: Tue, 5 Mar 2013 17:49:35 +1100
  4. Subject: [PATCH] layout: fix errors in fallback HotCorner function
  5.  
  6. ---
  7. js/ui/layout.js | 6 +++---
  8.  1 file changed, 3 insertions(+), 3 deletions(-)
  9.  
  10. diff --git a/js/ui/layout.js b/js/ui/layout.js
  11. index 63d040d..6ca5d84 100644
  12. --- a/js/ui/layout.js
  13. +++ b/js/ui/layout.js
  14. @@ -1112,7 +1112,7 @@ const HotCorner = new Lang.Class({
  15.          this._x = x;
  16.          this._y = y;
  17.  
  18. -        this._setupFallbackCornerIfNeeded();
  19. +        this._setupFallbackCornerIfNeeded(layoutManager);
  20.  
  21.          this._pressureBarrier = new PressureBarrier(HOT_CORNER_PRESSURE_THRESHOLD,
  22.                                                      HOT_CORNER_PRESSURE_TIMEOUT,
  23. @@ -1156,10 +1156,10 @@ const HotCorner = new Lang.Class({
  24.          }
  25.      },
  26.  
  27. -    _setupFallbackCornerIfNeeded: function() {
  28. +    _setupFallbackCornerIfNeeded: function(layoutManager) {
  29.          if (!global.display.supports_extended_barriers()) {
  30.              this.actor = new Clutter.Actor({ name: 'hot-corner-environs',
  31. -                                             x: x, y: y,
  32. +                                             x: this._x, y: this._y,
  33.                                               width: 3,
  34.                                               height: 3,
  35.                                               reactive: true });
  36. --
  37. 1.8.1.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement