Toggle mutter's unredirect features on/off depending on the situation

We disable it when in the overview or when recording a video and otherwise
leave it enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=618497
This commit is contained in:
Adel Gadllah
2011-08-29 23:55:42 +02:00
parent 352fb7b833
commit 1dee10c575
2 changed files with 8 additions and 0 deletions

View File

@ -574,6 +574,9 @@ Overview.prototype = {
//
// If we switched to displaying the actors in the Overview rather than
// clones of them, this would obviously no longer be necessary.
//
// Disable unredirection while in the overview
Meta.disable_unredirect_for_screen(global.screen);
global.window_group.hide();
this._group.show();
this._background.show();
@ -767,6 +770,9 @@ Overview.prototype = {
},
_hideDone: function() {
// Re-enable unredirection
Meta.enable_unredirect_for_screen(global.screen);
global.window_group.show();
this.workspaces.destroy();