view 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
line wrap: on
line source

const MessageTray = imports.ui.messageTray;

let tray;

function init() {
	tray = MessageTray.MessageTray.prototype;
}

function enable() {
	tray._oldShowDesktopClone = tray._showDesktopClone;
	tray._oldHideDesktopClone = tray._hideDesktopClone;
	tray._showDesktopClone = function noShow(){};
	tray._hideDesktopClone = function noHide(){};
}

function disable() {
	tray._showDesktopClone = tray._oldShowDesktopClone;
	tray._hideDesktopClone = tray._oldHideDesktopClone;
}