diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2015-06-30 14:01:44 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2015-06-30 14:01:44 +0000 |
commit | 16b6b4baca38200566ed39443bae9d4a6f1883ab (patch) | |
tree | 74502001f7798fc6b9a49b04e8d2c246ac67ab1a /app/cwm/screen.c | |
parent | 83ca8f5c0e86add8c771a77e9e9604e2fe7abe90 (diff) |
Re-implement XClientMessage handling so that we can feed screen_find and
client_find valid resources as needed, relieving the need for
screen_find to ungracefully handle invalid root windows. Removes a long
standing XXX. Should theoretically allow XClientMessage handling on
more than one X screen. Alter callers of screen_find to handle
failures.
Diffstat (limited to 'app/cwm/screen.c')
-rw-r--r-- | app/cwm/screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/screen.c b/app/cwm/screen.c index 01fcead71..03cf679e0 100644 --- a/app/cwm/screen.c +++ b/app/cwm/screen.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: screen.c,v 1.75 2015/06/26 18:54:25 okan Exp $ + * $OpenBSD: screen.c,v 1.76 2015/06/30 14:01:43 okan Exp $ */ #include <sys/types.h> @@ -100,8 +100,8 @@ screen_find(Window win) if (sc->rootwin == win) return(sc); } - /* XXX FAIL HERE */ - return(TAILQ_FIRST(&Screenq)); + warnx("screen_find failure win 0x%lu\n", win); + return(NULL); } void |