Changeset View
Changeset View
Standalone View
Standalone View
placement.cpp
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 198 | { | |||
---|---|---|---|---|---|
200 | * SmartPlacement by Cristian Tibirna (tibirna@kde.org) | 200 | * SmartPlacement by Cristian Tibirna (tibirna@kde.org) | ||
201 | * adapted for kwm (16-19jan98) and for kwin (16Nov1999) using (with | 201 | * adapted for kwm (16-19jan98) and for kwin (16Nov1999) using (with | ||
202 | * permission) ideas from fvwm, authored by | 202 | * permission) ideas from fvwm, authored by | ||
203 | * Anthony Martin (amartin@engr.csulb.edu). | 203 | * Anthony Martin (amartin@engr.csulb.edu). | ||
204 | * Xinerama supported added by Balaji Ramani (balaji@yablibli.com) | 204 | * Xinerama supported added by Balaji Ramani (balaji@yablibli.com) | ||
205 | * with ideas from xfce. | 205 | * with ideas from xfce. | ||
206 | */ | 206 | */ | ||
207 | 207 | | |||
208 | if (!c->size().isValid()) { | ||||
209 | return; | ||||
210 | } | ||||
211 | | ||||
208 | const int none = 0, h_wrong = -1, w_wrong = -2; // overlap types | 212 | const int none = 0, h_wrong = -1, w_wrong = -2; // overlap types | ||
209 | long int overlap, min_overlap = 0; | 213 | long int overlap, min_overlap = 0; | ||
210 | int x_optimal, y_optimal; | 214 | int x_optimal, y_optimal; | ||
211 | int possible; | 215 | int possible; | ||
212 | int desktop = c->desktop() == 0 || c->isOnAllDesktops() ? VirtualDesktopManager::self()->current() : c->desktop(); | 216 | int desktop = c->desktop() == 0 || c->isOnAllDesktops() ? VirtualDesktopManager::self()->current() : c->desktop(); | ||
213 | 217 | | |||
214 | int cxl, cxr, cyt, cyb; //temp coords | 218 | int cxl, cxr, cyt, cyb; //temp coords | ||
215 | int xl, xr, yt, yb; //temp coords | 219 | int xl, xr, yt, yb; //temp coords | ||
▲ Show 20 Lines • Show All 738 Lines • Show Last 20 Lines |