tMerge pull request #43 from ivzave/pfw-no-window - wmutils - X windows manipulation utilities
 (HTM) git clone git://z3bra.org/wmutils
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b412c85154ff352c2171ec4ba5f5b272999083e2
 (DIR) parent adc455e7dd8c8e4c528e35d09e2da0f153864611
 (HTM) Author: zebra v3.1 <z3bratabs@users.noreply.github.com>
       Date:   Wed, 15 Jun 2016 15:11:26 +0200
       
       Merge pull request #43 from ivzave/pfw-no-window
       
       pfw: return 1 if no window is focused
       Diffstat:
         M pfw.c                               |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/pfw.c b/pfw.c
       t@@ -25,6 +25,10 @@ focus_window(void)
        
                w = r->focus;
                free(r);
       +
       +        if (w == XCB_NONE || w == XCB_INPUT_FOCUS_POINTER_ROOT)
       +                errx(1, "focus not set");
       +
                return w;
        }