Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 360 | if (isDock()) { | |||
---|---|---|---|---|---|
361 | if (workspace()->showingDesktop()) | 361 | if (workspace()->showingDesktop()) | ||
362 | return NotificationLayer; | 362 | return NotificationLayer; | ||
363 | return layerForDock(); | 363 | return layerForDock(); | ||
364 | } | 364 | } | ||
365 | if (isOnScreenDisplay()) | 365 | if (isOnScreenDisplay()) | ||
366 | return OnScreenDisplayLayer; | 366 | return OnScreenDisplayLayer; | ||
367 | if (isNotification()) | 367 | if (isNotification()) | ||
368 | return NotificationLayer; | 368 | return NotificationLayer; | ||
369 | if (isCriticalNotification()) | ||||
370 | return CriticalNotificationLayer; | ||||
369 | if (workspace()->showingDesktop() && belongsToDesktop()) { | 371 | if (workspace()->showingDesktop() && belongsToDesktop()) { | ||
370 | return AboveLayer; | 372 | return AboveLayer; | ||
371 | } | 373 | } | ||
372 | if (keepBelow()) | 374 | if (keepBelow()) | ||
373 | return BelowLayer; | 375 | return BelowLayer; | ||
374 | if (isActiveFullScreen()) | 376 | if (isActiveFullScreen()) | ||
375 | return ActiveLayer; | 377 | return ActiveLayer; | ||
376 | if (keepAbove()) | 378 | if (keepAbove()) | ||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | |||||
472 | bool AbstractClient::wantsTabFocus() const | 474 | bool AbstractClient::wantsTabFocus() const | ||
473 | { | 475 | { | ||
474 | return (isNormalWindow() || isDialog()) && wantsInput(); | 476 | return (isNormalWindow() || isDialog()) && wantsInput(); | ||
475 | } | 477 | } | ||
476 | 478 | | |||
477 | bool AbstractClient::isSpecialWindow() const | 479 | bool AbstractClient::isSpecialWindow() const | ||
478 | { | 480 | { | ||
479 | // TODO | 481 | // TODO | ||
480 | return isDesktop() || isDock() || isSplash() || isToolbar() || isNotification() || isOnScreenDisplay(); | 482 | return isDesktop() || isDock() || isSplash() || isToolbar() || isNotification() || isOnScreenDisplay() || isCriticalNotification(); | ||
481 | } | 483 | } | ||
482 | 484 | | |||
483 | void AbstractClient::demandAttention(bool set) | 485 | void AbstractClient::demandAttention(bool set) | ||
484 | { | 486 | { | ||
485 | if (isActive()) | 487 | if (isActive()) | ||
486 | set = false; | 488 | set = false; | ||
487 | if (m_demandsAttention == set) | 489 | if (m_demandsAttention == set) | ||
488 | return; | 490 | return; | ||
▲ Show 20 Lines • Show All 1593 Lines • Show Last 20 Lines |