forked from e16/e16
1
0
Fork 0

Fix unmaximizing by _NET_WM_STATE[_MAXIMIZED_...]

This commit is contained in:
Kim Woelders 2020-01-23 20:01:46 +01:00
parent efb00936d7
commit 18f9df7774
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2003-2018 Kim Woelders
* Copyright (C) 2003-2020 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -975,8 +975,9 @@ EWMH_ProcessClientClientMessage(EWin * ewin, XClientMessageEvent * ev)
maxh = do_set(maxh, action);
}
if ((ewin->state.maximized_horz != maxh) ||
(ewin->state.maximized_vert != maxv))
maxh = ewin->state.maximized_horz != maxh;
maxv = ewin->state.maximized_vert != maxv;
if (maxh || maxv)
{
MaxSizeHV(ewin, "available", maxh, maxv);
EWMH_SetWindowState(ewin);