mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
win: fix EWMH fullscreen detection
In `win_update_prop_fullscreen`, if _NET_WM_STATE is empty we exited early and forgot to set fullscreen to false. Fixes #1216 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
040cc107f8
commit
6de56c6a0b
1 changed files with 0 additions and 4 deletions
|
@ -1035,10 +1035,6 @@ win_update_prop_shadow(struct x_connection *c, struct atom *atoms, struct manage
|
||||||
bool win_update_prop_fullscreen(struct x_connection *c, const struct atom *atoms,
|
bool win_update_prop_fullscreen(struct x_connection *c, const struct atom *atoms,
|
||||||
struct managed_win *w) {
|
struct managed_win *w) {
|
||||||
auto prop = x_get_prop(c, w->client_win, atoms->a_NET_WM_STATE, 12, XCB_ATOM_ATOM, 0);
|
auto prop = x_get_prop(c, w->client_win, atoms->a_NET_WM_STATE, 12, XCB_ATOM_ATOM, 0);
|
||||||
if (!prop.nitems) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool is_fullscreen = false;
|
bool is_fullscreen = false;
|
||||||
for (uint32_t i = 0; i < prop.nitems; i++) {
|
for (uint32_t i = 0; i < prop.nitems; i++) {
|
||||||
if (prop.atom[i] == atoms->a_NET_WM_STATE_FULLSCREEN) {
|
if (prop.atom[i] == atoms->a_NET_WM_STATE_FULLSCREEN) {
|
||||||
|
|
Loading…
Reference in a new issue