Mercurial > repos > other > MoveFreeMessageTray
changeset 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 | 0bfb4754a3c3 |
files | README.md extension.js metadata.json |
diffstat | 3 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Sat Mar 23 19:57:08 2013 +0000 @@ -0,0 +1,6 @@ +# Move-Free Message Tray + +The Gnome Shell message tray in versions up to 3.6 were discrete - you hover +in the corner and they appear over your windows. Gnome Shell 3.6 made this +uglier - your whole screen moves to make space for the message tray. This +extension fixes that and goes back to an "overlay" style. \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extension.js Sat Mar 23 19:57:08 2013 +0000 @@ -0,0 +1,19 @@ +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; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/metadata.json Sat Mar 23 19:57:08 2013 +0000 @@ -0,0 +1,1 @@ +{"shell-version": ["3.6.3.1"], "uuid": "movefree.message.tray@ibboard.co.uk", "name": "Move-free Message Tray", "description": "\"Returns the Message Tray to pre-3.6 behaviour where your whole screen doesn't move"} \ No newline at end of file