Use WM_STATE_NORMAL as default
commite6a1f8bac9cffaeb64006e68160ec4ceb5a20688
authorUli Schlachter <psychon@znc.in>
Mon, 29 Mar 2010 09:21:20 +0000 (29 11:21 +0200)
committerJulien Danjou <julien@danjou.info>
Mon, 29 Mar 2010 15:47:45 +0000 (29 17:47 +0200)
treebb0701e992d1f6e613bba83f8d968d19508cd394
parent34d4cce4ac7dca2e0204da5264900a0939d419e8
Use WM_STATE_NORMAL as default

If a window didn't have a WM_STATE set, xwindow_get_state_reply() returned 0
which just happened to be XCB_WM_STATE_WITHDRAWN. This caused issues in scan().

Instead, we now assume a window is in state normal if no state is explicitly
set, which makes a lot more sense and fixes actual bugs.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
window.c