diff options
author | okan <okan> | 2020-03-24 14:47:29 +0000 |
---|---|---|
committer | okan <okan> | 2020-03-24 14:47:29 +0000 |
commit | 6c20772841684c18d85b45888de01e538f2999b4 (patch) | |
tree | 4a8c5cc0e54fe1161a1d06b260948b961444a939 /xutil.c | |
parent | 0a7d8cc5c4bfa8df89c7b876d9f52bea14f37014 (diff) | |
download | cwm-6c20772841684c18d85b45888de01e538f2999b4.tar.gz cwm-6c20772841684c18d85b45888de01e538f2999b4.tar.xz cwm-6c20772841684c18d85b45888de01e538f2999b4.zip |
Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location
to determine what client to set active. Reduces a round trip for every window.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/xutil.c b/xutil.c index 69da471..37af7db 100644 --- a/xutil.c +++ b/xutil.c @@ -296,22 +296,6 @@ xu_ewmh_net_active_window(struct screen_ctx *sc, Window w) XA_WINDOW, 32, PropModeReplace, (unsigned char *)&w, 1); } -Window -xu_ewmh_get_net_active_window(struct screen_ctx *sc) -{ - long *p; - Window win; - - if ((xu_get_prop(sc->rootwin, ewmh[_NET_ACTIVE_WINDOW], - XA_WINDOW, 32, (unsigned char **)&p)) <= 0) - return None; - - win = (Window)*p; - XFree(p); - - return win; -} - void xu_ewmh_net_number_of_desktops(struct screen_ctx *sc) { |