diff options
author | okan <okan> | 2015-06-30 14:01:43 +0000 |
---|---|---|
committer | okan <okan> | 2015-06-30 14:01:43 +0000 |
commit | 8515d717ae5bb336e089e9c10a92b499de5d4c81 (patch) | |
tree | 9d0a49f5649789eb9725c95057e38f82fe36ebd9 /screen.c | |
parent | 9ea5f25347c056fc1ad2bf61a25dcb7181d5179b (diff) | |
download | cwm-8515d717ae5bb336e089e9c10a92b499de5d4c81.tar.gz cwm-8515d717ae5bb336e089e9c10a92b499de5d4c81.tar.xz cwm-8515d717ae5bb336e089e9c10a92b499de5d4c81.zip |
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 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c index 81712ab..7ba8a31 100644 --- a/screen.c +++ b/screen.c @@ -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 |