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:
parent
1a145bba61
commit
91b0784330
2 changed files with 4 additions and 3 deletions
|
@ -2706,6 +2706,8 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
|
|||
break;
|
||||
|
||||
case XA_WM_TRANSIENT_FOR: {
|
||||
bool s = flags.stuck;
|
||||
|
||||
// determine if this is a transient window
|
||||
getTransientInfo();
|
||||
|
||||
|
@ -2714,6 +2716,7 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
|
|||
functions &= ~Func_Maximize;
|
||||
setAllowedActions();
|
||||
setupDecor();
|
||||
if (flags.stuck != s) stick();
|
||||
}
|
||||
|
||||
reconfigure();
|
||||
|
|
|
@ -101,9 +101,7 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
|
|||
|
||||
if (screen->doFocusNew() || (w->isTransient() && w->getTransientFor() &&
|
||||
w->getTransientFor()->isFocused())) {
|
||||
if (id == screen->getCurrentWorkspaceID())
|
||||
w->setInputFocus();
|
||||
else {
|
||||
if (id != screen->getCurrentWorkspaceID()) {
|
||||
/*
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue