Changeset View
Changeset View
Standalone View
Standalone View
placement.cpp
Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | 369 | { | |||
---|---|---|---|---|---|
371 | return QPoint(area.width()/48, area.height()/48); | 371 | return QPoint(area.width()/48, area.height()/48); | ||
372 | } | 372 | } | ||
373 | 373 | | |||
374 | /** | 374 | /** | ||
375 | * Place windows in a cascading order, remembering positions for each desktop | 375 | * Place windows in a cascading order, remembering positions for each desktop | ||
376 | **/ | 376 | **/ | ||
377 | void Placement::placeCascaded(AbstractClient* c, QRect& area, Policy nextPlacement) | 377 | void Placement::placeCascaded(AbstractClient* c, QRect& area, Policy nextPlacement) | ||
378 | { | 378 | { | ||
379 | if (!c->size().isValid()) { | ||||
380 | return; | ||||
381 | } | ||||
382 | | ||||
379 | /* cascadePlacement by Cristian Tibirna (tibirna@kde.org) (30Jan98) | 383 | /* cascadePlacement by Cristian Tibirna (tibirna@kde.org) (30Jan98) | ||
380 | */ | 384 | */ | ||
381 | // work coords | 385 | // work coords | ||
382 | int xp, yp; | 386 | int xp, yp; | ||
383 | 387 | | |||
384 | //CT how do I get from the 'Client' class the size that NW squarish "handle" | 388 | //CT how do I get from the 'Client' class the size that NW squarish "handle" | ||
385 | const QPoint delta = workspace()->cascadeOffset(c); | 389 | const QPoint delta = workspace()->cascadeOffset(c); | ||
386 | 390 | | |||
▲ Show 20 Lines • Show All 563 Lines • Show Last 20 Lines |