]> git.lizzy.rs Git - bspwm.git/commitdiff
Remove unused function
authorBastien Dejean <nihilhill@gmail.com>
Tue, 9 Jun 2015 18:56:05 +0000 (20:56 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Tue, 9 Jun 2015 18:56:05 +0000 (20:56 +0200)
window.c
window.h

index d9d5082650721538c599c5ed3c8aa8deb15ab02b..c4897c1d1cc2ca981808d5ad6e587e660fcadb5d 100644 (file)
--- a/window.c
+++ b/window.c
@@ -600,17 +600,6 @@ void query_pointer(xcb_window_t *win, xcb_point_t *pt)
        }
 }
 
-bool window_focus(xcb_window_t win)
-{
-       coordinates_t loc;
-       if (locate_window(win, &loc)) {
-               if (loc.node != mon->desk->focus)
-                       focus_node(loc.monitor, loc.desktop, loc.node);
-               return true;
-       }
-       return false;
-}
-
 void window_border_width(xcb_window_t win, uint32_t bw)
 {
        uint32_t values[] = {bw};
index 3152fca6f22c4b020082f07a7e7a3823ebb30c56..329e72b6374effba8f83c223f387127d023395a3 100644 (file)
--- a/window.h
+++ b/window.h
@@ -58,7 +58,6 @@ void restrain_floating_width(client_t *c, int *width);
 void restrain_floating_height(client_t *c, int *height);
 void restrain_floating_size(client_t *c, int *width, int *height);
 void query_pointer(xcb_window_t *win, xcb_point_t *pt);
-bool window_focus(xcb_window_t win);
 void window_border_width(xcb_window_t win, uint32_t bw);
 void window_move(xcb_window_t win, int16_t x, int16_t y);
 void window_resize(xcb_window_t win, uint16_t w, uint16_t h);