Changeset View
Changeset View
Standalone View
Standalone View
activation.cpp
Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Line(s) | 421 | while (it != stackingOrder().constBegin()) { | |||
---|---|---|---|---|---|
425 | } | 425 | } | ||
426 | 426 | | |||
427 | // rule out clients which are not really visible. | 427 | // rule out clients which are not really visible. | ||
428 | // the screen test is rather superfluous for xrandr & twinview since the geometry would differ -> TODO: might be dropped | 428 | // the screen test is rather superfluous for xrandr & twinview since the geometry would differ -> TODO: might be dropped | ||
429 | if (!(client->isShown(false) && client->isOnCurrentDesktop() && | 429 | if (!(client->isShown(false) && client->isOnCurrentDesktop() && | ||
430 | client->isOnCurrentActivity() && client->isOnScreen(screen))) | 430 | client->isOnCurrentActivity() && client->isOnScreen(screen))) | ||
431 | continue; | 431 | continue; | ||
432 | 432 | | |||
433 | if (client->geometry().contains(Cursor::pos())) { | 433 | if (client->frameGeometry().contains(Cursor::pos())) { | ||
434 | return client; | 434 | return client; | ||
435 | } | 435 | } | ||
436 | } | 436 | } | ||
437 | return nullptr; | 437 | return nullptr; | ||
438 | } | 438 | } | ||
439 | 439 | | |||
440 | // deactivates 'c' and activates next client | 440 | // deactivates 'c' and activates next client | ||
441 | bool Workspace::activateNextClient(AbstractClient* c) | 441 | bool Workspace::activateNextClient(AbstractClient* c) | ||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |