win: fix transparency detection for windows without a WM frame
Ping #233 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
c920082bff
commit
a0712274ff
|
@ -552,6 +552,11 @@ winmode_t win_calc_mode(const struct managed_win *w) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (win_has_alpha(w)) {
|
if (win_has_alpha(w)) {
|
||||||
|
if (w->client_win == XCB_NONE) {
|
||||||
|
// This is a window not managed by the WM, and it has alpha,
|
||||||
|
// so it's transparent. No need to check WM frame.
|
||||||
|
return WMODE_TRANS;
|
||||||
|
}
|
||||||
// The WM window has alpha
|
// The WM window has alpha
|
||||||
if (win_client_has_alpha(w)) {
|
if (win_client_has_alpha(w)) {
|
||||||
// The client window also has alpha, the entire window is
|
// The client window also has alpha, the entire window is
|
||||||
|
|
Loading…
Reference in New Issue