mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: add explanatory comment on WM_HINTS.input
This commit is contained in:
parent
cae96b0cce
commit
4b887657bd
1 changed files with 14 additions and 0 deletions
|
|
@ -37,6 +37,20 @@ xwayland_view_wants_focus(struct view *view)
|
||||||
if (!hints) {
|
if (!hints) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Paraphrased from ICCCM section 4.1.7 (Input Focus):
|
||||||
|
*
|
||||||
|
* Clients set the input field of WM_HINTS to True to indicate
|
||||||
|
* that they require window manager assistance in acquiring the
|
||||||
|
* input focus. Clients set the input field to False to request
|
||||||
|
* that the window manager not set the input focus to their
|
||||||
|
* top-level window.
|
||||||
|
*
|
||||||
|
* Clients that use XSetInputFocus() to explicitly set the input
|
||||||
|
* focus should set the WM_TAKE_FOCUS atom in WM_PROTOCOLS.
|
||||||
|
* Currently, labwc does not support this method of taking focus
|
||||||
|
* and thus makes no use of WM_TAKE_FOCUS.
|
||||||
|
*/
|
||||||
return (bool)hints->input;
|
return (bool)hints->input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue