comparison extension.js @ 0:a1f9f68087f2

Basic extension that does nothing more than NOOP the movement functions
author IBBoard <dev@ibboard.co.uk>
date Sat, 23 Mar 2013 19:57:08 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a1f9f68087f2
1 const MessageTray = imports.ui.messageTray;
2
3 let tray;
4
5 function init() {
6 tray = MessageTray.MessageTray.prototype;
7 }
8
9 function enable() {
10 tray._oldShowDesktopClone = tray._showDesktopClone;
11 tray._oldHideDesktopClone = tray._hideDesktopClone;
12 tray._showDesktopClone = function noShow(){};
13 tray._hideDesktopClone = function noHide(){};
14 }
15
16 function disable() {
17 tray._showDesktopClone = tray._oldShowDesktopClone;
18 tray._hideDesktopClone = tray._oldHideDesktopClone;
19 }