Changeset View
Changeset View
Standalone View
Standalone View
placement.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 60 | { | |||
---|---|---|---|---|---|
65 | } | 65 | } | ||
66 | 66 | | |||
67 | if (c->isUtility()) | 67 | if (c->isUtility()) | ||
68 | placeUtility(c, area, options->placement()); | 68 | placeUtility(c, area, options->placement()); | ||
69 | else if (c->isDialog()) | 69 | else if (c->isDialog()) | ||
70 | placeDialog(c, area, options->placement()); | 70 | placeDialog(c, area, options->placement()); | ||
71 | else if (c->isSplash()) | 71 | else if (c->isSplash()) | ||
72 | placeOnMainWindow(c, area); // on mainwindow, if any, otherwise centered | 72 | placeOnMainWindow(c, area); // on mainwindow, if any, otherwise centered | ||
73 | else if (c->isOnScreenDisplay() || c->isNotification()) | 73 | else if (c->isOnScreenDisplay() || c->isNotification() || c->isCriticalNotification()) | ||
74 | placeOnScreenDisplay(c, area); | 74 | placeOnScreenDisplay(c, area); | ||
75 | else if (c->isTransient() && c->hasTransientPlacementHint()) | 75 | else if (c->isTransient() && c->hasTransientPlacementHint()) | ||
76 | placeTransient(c); | 76 | placeTransient(c); | ||
77 | else if (c->isTransient() && c->surface()) | 77 | else if (c->isTransient() && c->surface()) | ||
78 | placeDialog(c, area, options->placement()); | 78 | placeDialog(c, area, options->placement()); | ||
79 | else | 79 | else | ||
80 | place(c, area, options->placement()); | 80 | place(c, area, options->placement()); | ||
81 | } | 81 | } | ||
▲ Show 20 Lines • Show All 872 Lines • Show Last 20 Lines |