actually work for windows that dont specify the input hint

This commit is contained in:
Dana Jansens 2002-09-09 16:31:53 +00:00
parent 7f001973a8
commit 70d9394142

View file

@ -130,12 +130,13 @@ void XWindow::updateNormalHints() {
void XWindow::updateWMHints() { void XWindow::updateWMHints() {
XWMHints *hints; XWMHints *hints;
// assume a window takes input if it doesnt specify
_can_focus = True;
if ((hints = XGetWMHints(_epist->getXDisplay(), _window)) != NULL) { if ((hints = XGetWMHints(_epist->getXDisplay(), _window)) != NULL) {
_can_focus = hints->input; if (hints->flags & InputHint)
_can_focus = hints->input;
XFree(hints); XFree(hints);
} else {
// assume a window takes input if it doesnt specify
_can_focus = True;
} }
} }