Unify opacity_prop and opacity_prop_client

Also keep track of whether opacity prop is present on the window
This commit is contained in:
Yuxuan Shui
2018-08-11 13:22:49 -04:00
parent a1afb76c44
commit 91ca387723
4 changed files with 37 additions and 30 deletions

View File

@@ -1162,12 +1162,11 @@ typedef struct _win {
opacity_t opacity;
/// Target window opacity.
opacity_t opacity_tgt;
/// true if window (or client window, for broken window managers
/// not transferring client window's _NET_WM_OPACITY value) has opacity prop
bool has_opacity_prop;
/// Cached value of opacity window attribute.
opacity_t opacity_prop;
/// Cached value of opacity window attribute on client window. For
/// broken window managers not transferring client window's
/// _NET_WM_OPACITY value
opacity_t opacity_prop_client;
/// Last window opacity value we set.
opacity_t opacity_set;