actually work for windows that dont specify the input hint
This commit is contained in:
parent
7f001973a8
commit
70d9394142
1 changed files with 5 additions and 4 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue