diff --git a/extension.js b/extension.js index 349e8e1..dd6126e 100644 --- a/extension.js +++ b/extension.js @@ -14,9 +14,8 @@ const InvertWindowEffect = new Lang.Class({ Name: 'InvertWindowEffect', Extends: Clutter.ShaderEffect, - _init: function(params) { - this.parent(params); - this.set_shader_source(' \ + vfunc_get_static_shader_source: function() { + return ' \ uniform sampler2D tex; \ void main() { \ vec4 color = texture2D(tex, cogl_tex_coord_in[0].st); \ @@ -27,12 +26,12 @@ const InvertWindowEffect = new Lang.Class({ color.rgb *= color.a; \ cogl_color_out = color * cogl_color_in; \ } \ - '); + '; }, - vfunc_paint_target: function() { + vfunc_paint_target: function(paint_context) { this.set_uniform_value("tex", 0); - this.parent(); + this.parent(paint_context); } }); diff --git a/metadata.json b/metadata.json index 3a3e5ae..56a4a95 100644 --- a/metadata.json +++ b/metadata.json @@ -4,7 +4,7 @@ "description": "Inverts the color of individual windows\nDefault shortcut is Super+I", "url": "https://github.com/maiself/gnome-shell-extension-invert-color", "shell-version": [ - "3.32" + "3.36" ], "settings-schema": "org.gnome.shell.extensions.invert-window", "version": 5