Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop state is read from window manager #80

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Check whether desktop is shown using _NET_SHOWING_DESKTOP X11 Exten…
…ded Window Manager Hints property.

To correctly reflect the desktop showing state in the UI, the current state needs to be
read from X11 properties set by the window manager. Otherwise the UI may not always
be updated when desktop showing state is changed by other applications.
kurokawachan authored Feb 8, 2025
commit fd75d28cfb881cd19b2cab087b477a3c94b978bd
1 change: 1 addition & 0 deletions plugins/wincmd.c
Original file line number Diff line number Diff line change
@@ -136,6 +136,7 @@ static gboolean wincmd_button_clicked(GtkWidget * widget, GdkEventButton * event
* Otherwise, fall back to iconifying windows individually. */
if (gdk_x11_screen_supports_net_wm_hint(screen, atom))
{

wc->toggle_state = get_net_showing_desktop();

int showing_desktop = ((( ! wc->toggle_preference) || ( ! wc->toggle_state)) ? 1 : 0);