don't actually focus windows when adding them to the current workspace. this is already handled elsewhere, ands the window probably isnt evenmapped yet

This commit is contained in:
Dana Jansens 2002-08-13 21:14:37 +00:00
parent 1a145bba61
commit 91b0784330
2 changed files with 4 additions and 3 deletions

View file

@ -2706,6 +2706,8 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
break; break;
case XA_WM_TRANSIENT_FOR: { case XA_WM_TRANSIENT_FOR: {
bool s = flags.stuck;
// determine if this is a transient window // determine if this is a transient window
getTransientInfo(); getTransientInfo();
@ -2714,6 +2716,7 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
functions &= ~Func_Maximize; functions &= ~Func_Maximize;
setAllowedActions(); setAllowedActions();
setupDecor(); setupDecor();
if (flags.stuck != s) stick();
} }
reconfigure(); reconfigure();

View file

@ -101,9 +101,7 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
if (screen->doFocusNew() || (w->isTransient() && w->getTransientFor() && if (screen->doFocusNew() || (w->isTransient() && w->getTransientFor() &&
w->getTransientFor()->isFocused())) { w->getTransientFor()->isFocused())) {
if (id == screen->getCurrentWorkspaceID()) if (id != screen->getCurrentWorkspaceID()) {
w->setInputFocus();
else {
/* /*
not on the focused workspace, so the window is not going to get focus not on the focused workspace, so the window is not going to get focus
but if the user wants new windows focused, then it should get focus but if the user wants new windows focused, then it should get focus