x11: Inline condition to avoid potential extra call
This commit is contained in:
parent
62cf7e8830
commit
1dddf271d2
1 changed files with 1 additions and 5 deletions
|
@ -604,13 +604,9 @@ bool X11Window::manage(xcb_window_t w, bool isMapped)
|
|||
setOnActivities(activitiesList);
|
||||
}
|
||||
|
||||
QRectF geom = windowGeometry.rect();
|
||||
QRectF geom = session ? session->geometry : windowGeometry.rect();
|
||||
bool placementDone = false;
|
||||
|
||||
if (session) {
|
||||
geom = session->geometry;
|
||||
}
|
||||
|
||||
QRectF area;
|
||||
bool partial_keep_in_area = isMapped || session;
|
||||
if (isMapped || session) {
|
||||
|
|
Loading…
Reference in a new issue