all repos — fluxbox @ 33d0a6025c19901929f515f641aa2ef4ca8e7048

custom fork of the fluxbox windowmanager

sync after input focus
fluxgen fluxgen
commit

33d0a6025c19901929f515f641aa2ef4ca8e7048

parent

a11575f9596d12ef7c18c2af3031388028bdbd7d

1 files changed, 12 insertions(+), 2 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.256 2003/12/21 16:23:19 fluxgen Exp $ +// $Id: Window.cc,v 1.257 2003/12/21 23:23:03 fluxgen Exp $ #include "Window.hh"

@@ -1198,8 +1198,18 @@ bool ret = false;

if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || m_client->getFocusMode() == WinClient::F_PASSIVE) { + m_client->setInputFocus(RevertToPointerRoot, CurrentTime); - m_client->sendFocus(); + + FbTk::App *app = FbTk::App::instance(); + + XFlush(app->display()); + + m_client->sendFocus(); + + app->sync(false); + app->sync(false); + ret = true; } else { ret = m_client->sendFocus();