Changeset View
Changeset View
Standalone View
Standalone View
activation.cpp
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Line(s) | 383 | if (c->isShade()) { | |||
---|---|---|---|---|---|
384 | if (c->wantsInput() && (flags & ActivityFocus)) { | 384 | if (c->wantsInput() && (flags & ActivityFocus)) { | ||
385 | // client cannot accept focus, but at least the window should be active (window menu, et. al. ) | 385 | // client cannot accept focus, but at least the window should be active (window menu, et. al. ) | ||
386 | c->setActive(true); | 386 | c->setActive(true); | ||
387 | focusToNull(); | 387 | focusToNull(); | ||
388 | } | 388 | } | ||
389 | flags &= ~ActivityFocus; | 389 | flags &= ~ActivityFocus; | ||
390 | } | 390 | } | ||
391 | if (c->tabGroup() && c->tabGroup()->current() != c) | 391 | if (c->tabGroup() && c->tabGroup()->current() != c) | ||
392 | c->tabGroup()->setCurrent(dynamic_cast<Client*>(c)); | 392 | c->tabGroup()->setCurrent(c); | ||
393 | if (!c->isShown(true)) { // shouldn't happen, call activateClient() if needed | 393 | if (!c->isShown(true)) { // shouldn't happen, call activateClient() if needed | ||
394 | qCWarning(KWIN_CORE) << "takeActivity: not shown" ; | 394 | qCWarning(KWIN_CORE) << "takeActivity: not shown" ; | ||
395 | return; | 395 | return; | ||
396 | } | 396 | } | ||
397 | 397 | | |||
398 | if (flags & ActivityFocus) | 398 | if (flags & ActivityFocus) | ||
399 | c->takeFocus(); | 399 | c->takeFocus(); | ||
400 | if (flags & ActivityRaise) | 400 | if (flags & ActivityRaise) | ||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |