X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=8093965e7fd5578e246154d83f5d26b73b7a920d;hb=c4e4760c41f10aae6af19a4363cb247c71edee4b;hp=483050fa9b49498a4ee57f0e44ddcb084f095e61;hpb=17676168255fcf5cbec9ea5dadcee546c5ab7bbb;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index 483050fa..8093965e 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1,3 +1,21 @@ +/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- + + event.c for the Openbox window manager + Copyright (c) 2003 Ben Jansens + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + #include "debug.h" #include "openbox.h" #include "dock.h" @@ -385,7 +403,9 @@ static gboolean event_ignore(XEvent *e, ObClient *client) use it */ event_process(&fe, &d); if (!d.ignored) { +#ifdef DEBUG_FOCUS ob_debug("FocusIn was OK, so don't fallback\n"); +#endif fallback = FALSE; break; } @@ -552,7 +572,7 @@ static void event_handle_root(XEvent *e) switch(e->type) { case SelectionClear: ob_debug("Another WM has requested to replace us. Exiting.\n"); - ob_exit(); + ob_exit(0); break; case ClientMessage: