big comment
This commit is contained in:
parent
ce8208bab8
commit
eb3533f81e
1 changed files with 17 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: WinClient.cc,v 1.33 2003/12/15 20:20:20 rathnor Exp $
|
// $Id: WinClient.cc,v 1.34 2003/12/21 13:31:12 fluxgen Exp $
|
||||||
|
|
||||||
#include "WinClient.hh"
|
#include "WinClient.hh"
|
||||||
|
|
||||||
|
@ -386,6 +386,20 @@ void WinClient::updateWMHints() {
|
||||||
initial_state = NormalState;
|
initial_state = NormalState;
|
||||||
} else {
|
} else {
|
||||||
wm_hint_flags = wmhint->flags;
|
wm_hint_flags = wmhint->flags;
|
||||||
|
/*
|
||||||
|
* ICCCM 4.1.7
|
||||||
|
*---------------------------------------------
|
||||||
|
* Input Model Input Field WM_TAKE_FOCUS
|
||||||
|
*---------------------------------------------
|
||||||
|
* No Input False Absent
|
||||||
|
* Passive True Absent
|
||||||
|
* Locally Active True Present
|
||||||
|
* Globally Active False Present
|
||||||
|
*---------------------------------------------
|
||||||
|
* Here: WM_TAKE_FOCUS = send_focus_message
|
||||||
|
* Input Field = wmhint->input
|
||||||
|
* Input Model = m_focus_mode
|
||||||
|
*/
|
||||||
if (wmhint->flags & InputHint) {
|
if (wmhint->flags & InputHint) {
|
||||||
if (wmhint->input) {
|
if (wmhint->input) {
|
||||||
if (send_focus_message)
|
if (send_focus_message)
|
||||||
|
@ -398,13 +412,14 @@ void WinClient::updateWMHints() {
|
||||||
else
|
else
|
||||||
m_focus_mode = F_NOINPUT;
|
m_focus_mode = F_NOINPUT;
|
||||||
}
|
}
|
||||||
} else // not present => false (check?).
|
} else { // not present => assuming False.
|
||||||
// note that mozilla has no value, and has send_focus
|
// note that mozilla has no value, and has send_focus
|
||||||
// and requires globally active
|
// and requires globally active
|
||||||
if (send_focus_message)
|
if (send_focus_message)
|
||||||
m_focus_mode = F_GLOBALLYACTIVE;
|
m_focus_mode = F_GLOBALLYACTIVE;
|
||||||
else // lots of apps have no hint, but need focus
|
else // lots of apps have no hint, but need focus
|
||||||
m_focus_mode = F_PASSIVE;
|
m_focus_mode = F_PASSIVE;
|
||||||
|
}
|
||||||
|
|
||||||
if (wmhint->flags & StateHint)
|
if (wmhint->flags & StateHint)
|
||||||
initial_state = wmhint->initial_state;
|
initial_state = wmhint->initial_state;
|
||||||
|
|
Loading…
Reference in a new issue