Fadein/out now applies to layersurfaces too

This commit is contained in:
vaxerski
2022-05-14 17:23:46 +02:00
parent 694f4433a2
commit 109136af97
11 changed files with 153 additions and 15 deletions

View File

@@ -5,8 +5,11 @@
#include "../../wlr-layer-shell-unstable-v1-protocol.h"
#include "../Window.hpp"
#include "SubsurfaceTree.hpp"
#include "AnimatedVariable.hpp"
struct SLayerSurface {
SLayerSurface();
wlr_layer_surface_v1* layerSurface;
wl_list link;
@@ -22,6 +25,9 @@ struct SLayerSurface {
int monitorID = -1;
CAnimatedVariable alpha;
bool fadingOut = false;
bool readyToDelete = false;
// For the list lookup
bool operator==(const SLayerSurface& rhs) {