aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2020-03-24 14:47:29 +0000
committerWynn Wolf Arbor2020-03-26 20:12:46 +0100
commit19eacc39316879fb7008f3b71b36e52b09f3b464 (patch)
tree4d314e660401a208ac806d981d67b59cc179ba58 /xutil.c
parent6230ae9cbeb69c9ed040e112328552e339d36d96 (diff)
downloadcwm-19eacc39316879fb7008f3b71b36e52b09f3b464.tar.gz
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 '')
-rw-r--r--xutil.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/xutil.c b/xutil.c
index c5f773f..01a7dc5 100644
--- a/xutil.c
+++ b/xutil.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: xutil.c,v 1.111 2020/02/27 14:56:39 okan Exp $
+ * $OpenBSD: xutil.c,v 1.112 2020/03/24 14:47:29 okan Exp $
*/
#include <sys/types.h>
@@ -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)
{