fixed issue with d->count including transient, fullscreen, and floating windows in its count