aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2013-05-20 21:13:58 +0000
committerokan2013-05-20 21:13:58 +0000
commit450f620a8c0d62fc13281e6a68f7670b00e3d3cb (patch)
treed08e6a94d5fe132bd57a0975650dbb67214bb0ab /client.c
parenta4fa4ac623b54b25b58caaba5b717165be6915bb (diff)
downloadcwm-450f620a8c0d62fc13281e6a68f7670b00e3d3cb.tar.gz
add support for _NET_WM_STATE_MAXIMIZED_{HORZ,VERT}; from Alexander Polakov.
while I'm unsure of the final look of _NET_WM_STATE, there's no reason to delay this support.
Diffstat (limited to 'client.c')
-rw-r--r--client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/client.c b/client.c
index 9fe7e08..ae4bb06 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.131 2013/05/19 23:09:59 okan Exp $
+ * $OpenBSD: client.c,v 1.132 2013/05/20 21:13:58 okan Exp $
*/
#include <sys/param.h>
@@ -133,6 +133,7 @@ client_init(Window win, struct screen_ctx *sc, int mapped)
xu_ewmh_net_client_list(sc);
client_wm_protocols(cc);
+ xu_ewmh_restore_net_wm_state(cc);
if (mapped)
group_autogroup(cc);
@@ -301,6 +302,7 @@ client_maximize(struct client_ctx *cc)
resize:
client_resize(cc, 0);
+ xu_ewmh_set_net_wm_state(cc);
}
void
@@ -341,6 +343,7 @@ client_vmaximize(struct client_ctx *cc)
resize:
client_resize(cc, 0);
+ xu_ewmh_set_net_wm_state(cc);
}
void
@@ -381,6 +384,7 @@ client_hmaximize(struct client_ctx *cc)
resize:
client_resize(cc, 0);
+ xu_ewmh_set_net_wm_state(cc);
}
void
@@ -389,6 +393,7 @@ client_resize(struct client_ctx *cc, int reset)
if (reset) {
cc->flags &= ~CLIENT_MAXIMIZED;
cc->bwidth = Conf.bwidth;
+ xu_ewmh_set_net_wm_state(cc);
}
client_draw_border(cc);