_transient_for = c;
if (_transient_for)
_transient_for->_transients.push_back(this); // add to new parent
-
- // XXX: change decor status?
}
}
} else if (state == otk::Property::atoms.net_wm_state_maximized_horz) {
if (_max_horz) continue;
maxh = true;
- // XXX: resize the window etc
} else if (state == otk::Property::atoms.net_wm_state_shaded) {
shadestate = true;
} else if (state == otk::Property::atoms.net_wm_state_skip_taskbar) {
}
+bool Client::focusModalChild()
+{
+ // XXX: find a modal child recursively and try focus it
+ return false;
+}
+
+
bool Client::focus()
{
// won't try focus if the client doesn't want it, or if the window isn't
if (_focused) return true;
+ if (_modal)
+ if (focusModalChild())
+ return true;
+
// do a check to see if the window has already been unmapped or destroyed
// do this intelligently while watching out for unmaps we've generated
// (ignore_unmaps > 0)