mirror of
https://github.com/elementary/gala.git
synced 2024-12-24 01:36:05 +03:00
no assignment in if
This commit is contained in:
parent
27b43cc32c
commit
1b4ec92676
@ -235,9 +235,9 @@ namespace Gala
|
||||
*/
|
||||
public static Clutter.Actor? get_window_actor_snapshot (Meta.WindowActor actor, Meta.Rectangle inner_rect, Meta.Rectangle outer_rect)
|
||||
{
|
||||
Meta.ShapedTexture? texture;
|
||||
var texture = actor.get_texture () as Meta.ShapedTexture;
|
||||
|
||||
if ((texture = actor.get_texture () as Meta.ShapedTexture) == null)
|
||||
if (texture == null)
|
||||
return null;
|
||||
|
||||
var surface = texture.get_image ({
|
||||
|
Loading…
Reference in New Issue
Block a user