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

EWMH Events: more _NET_WM_STATE client messages #1012

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Changes from all commits
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
23 changes: 19 additions & 4 deletions fvwm/ewmh_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "decorations.h"
#include "geometry.h"
#include "borders.h"
#include "module_interface.h"

extern ewmh_atom ewmh_atom_wm_state[];

Expand Down Expand Up @@ -1124,16 +1125,23 @@ int ewmh_WMStateSkipPager(

if (ev != NULL)
{
/* I do not think we can get such client message */
int bool_arg = ev->xclient.data.l[0];

if ((bool_arg == NET_WM_STATE_TOGGLE &&
!DO_SKIP_WINDOW_LIST(fw)) ||
bool_arg == NET_WM_STATE_ADD)
{
SET_DO_SKIP_WINDOW_LIST(fw, 1);
EWMH_SetWMState(fw, False);
BroadcastConfig(M_CONFIGURE_WINDOW, fw);
}
else
else if ((bool_arg == NET_WM_STATE_TOGGLE &&
DO_SKIP_WINDOW_LIST(fw)) ||
bool_arg == NET_WM_STATE_REMOVE)
{
SET_DO_SKIP_WINDOW_LIST(fw, 0);
EWMH_SetWMState(fw, False);
BroadcastConfig(M_CONFIGURE_WINDOW, fw);
}
}
return 0;
Expand Down Expand Up @@ -1196,16 +1204,23 @@ int ewmh_WMStateSkipTaskBar(

if (ev != NULL)
{
/* I do not think we can get such client message */
int bool_arg = ev->xclient.data.l[0];

if ((bool_arg == NET_WM_STATE_TOGGLE &&
!DO_SKIP_WINDOW_LIST(fw)) ||
bool_arg == NET_WM_STATE_ADD)
{
SET_DO_SKIP_WINDOW_LIST(fw, 1);
EWMH_SetWMState(fw, False);
BroadcastConfig(M_CONFIGURE_WINDOW, fw);
}
else
else if ((bool_arg == NET_WM_STATE_TOGGLE &&
DO_SKIP_WINDOW_LIST(fw)) ||
bool_arg == NET_WM_STATE_REMOVE)
{
SET_DO_SKIP_WINDOW_LIST(fw, 0);
EWMH_SetWMState(fw, False);
BroadcastConfig(M_CONFIGURE_WINDOW, fw);
}
}
return 0;
Expand Down
Loading