You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We click only one window icon to raise one window from the minimized state
And here we are not showing the Desktop.
Right now, if we click the toggle again, we would have to click two times to show the desktop instead of one time
Why
Inside the function wincmd_button_clicked, we are using wc->toggle_state to track the state we are in. Each time we click it, we toggle it on or off. We know the current state the window manager is in by using this variable.
However, if we click on the window directly, we do not modify this variable. So, we thought we are showing the desktop while we are not.
What should we do?
When using the window manager _NET_SHOWING_DESKTOP mode, we should read the state from the window manager instead of remembering it. The ideal way is actually requesting the window manager to toggle the value directly. However, I don't think it is possible using X11. So, we should read the state from the window manager and toggle it and request again.
The text was updated successfully, but these errors were encountered:
Assuming we are using openbox as window manager.
How to produce this issue
Why
Inside the function
wincmd_button_clicked
, we are usingwc->toggle_state
to track the state we are in. Each time we click it, we toggle it on or off. We know the current state the window manager is in by using this variable.However, if we click on the window directly, we do not modify this variable. So, we thought we are showing the desktop while we are not.
What should we do?
When using the window manager
_NET_SHOWING_DESKTOP
mode, we should read the state from the window manager instead of remembering it. The ideal way is actually requesting the window manager to toggle the value directly. However, I don't think it is possible using X11. So, we should read the state from the window manager and toggle it and request again.The text was updated successfully, but these errors were encountered: