-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

I've got a question regarding the Workspace::removeWindow function. Here
is the important section of the function:
  if (w->isFocused()) {
    if (screen->isSloppyFocus())
      screen->getBlackbox()->setFocusedWindow((BlackboxWindow *) 0);
    else if (w->isTransient() && w->getTransientFor() &&
       w->getTransientFor()->isVisible())
      w->getTransientFor()->setInputFocus();
    else {
      BlackboxWindow *top = stackingList->first();
      if (! top || ! top->setInputFocus()) {
  screen->getBlackbox()->setFocusedWindow((BlackboxWindow *) 0);
  XSetInputFocus(screen->getBlackbox()->getXDisplay(),
           screen->getToolbar()->getWindowID(),
           RevertToParent, CurrentTime);
      }
    }
  }
My question is: Why is XSetInputFocus called when there is no top window
left and sloppy focus is off, but not when sloppy focus is on?

The reason I ask this is it makes the keybind patch work rather unreliably.

The other reason is that when the toolbar is focused, keyboard events are not
grabbed. I'm going to try to make the toolbar process keyboard events,
does anyone know why it doesn't how to fix it off the top of their heads?
Or if this would be wrong?

xOr
- -- 
you have no chance to survive make your time
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7UfVc8mPQRGtSu14RAgssAJ9tENFMAI8J4SfcFqbAgCmi7YSPrACfeSrO
ZIn42BGO2RxqN/eKqGQLXwQ=
=HuA9
-----END PGP SIGNATURE-----

Reply via email to