tsst
[skippy-xd] / clientwin.c
index 25eea4d..b0a890d 100644 (file)
@@ -358,7 +358,7 @@ int
 clientwin_handle(ClientWin *cw, XEvent *ev)
 {
        if((ev->type == ButtonRelease && ev->xbutton.button == 1 && cw->mainwin->pressed == cw)) {
-               /*if((ev->xbutton.x >= 0 && ev->xbutton.y >= 0 && ev->xbutton.x < cw->mini.width && ev->xbutton.y < cw->mini.height))*/
+               if((ev->xbutton.x >= 0 && ev->xbutton.y >= 0 && ev->xbutton.x < cw->mini.width && ev->xbutton.y < cw->mini.height))
                        childwin_focus(cw);
                cw->mainwin->pressed = 0;
                return 1;
@@ -372,10 +372,8 @@ clientwin_handle(ClientWin *cw, XEvent *ev)
                else if(ev->xkey.keycode == cw->mainwin->key_right)
                        focus_right(cw);
                 else if(ev->xkey.keycode == cw->mainwin->key_f8)
-                       client_msg(cw->mainwin->dpy, cw->client.window, "_NET_CLOSE_WINDOW",
-                               0, 0, 0, 0, 0);
-                       /*client_msg(cw->mainwin->dpy, cw->client.window, "_NET_WM_STATE",
-                                       1, XInternAtom(cw->mainwin->dpy, "_NET_WM_STATE_FULLSCREEN", False), 0, 0, 0);*/
+                        client_msg(cw->mainwin->dpy, cw->client.window, "_NET_CLOSE_WINDOW",
+                       0, 0, 0, 0, 0);
                else if(ev->xkey.keycode == cw->mainwin->key_enter || ev->xkey.keycode == cw->mainwin->key_space) {
                        childwin_focus(cw);
                        return 1;