x11: Inline condition to avoid potential extra call

This commit is contained in:
ivan tkachenko 2022-07-20 16:56:38 +03:00 committed by Vlad Zahorodnii
parent 62cf7e8830
commit 1dddf271d2

View file

@ -604,13 +604,9 @@ bool X11Window::manage(xcb_window_t w, bool isMapped)
setOnActivities(activitiesList); setOnActivities(activitiesList);
} }
QRectF geom = windowGeometry.rect(); QRectF geom = session ? session->geometry : windowGeometry.rect();
bool placementDone = false; bool placementDone = false;
if (session) {
geom = session->geometry;
}
QRectF area; QRectF area;
bool partial_keep_in_area = isMapped || session; bool partial_keep_in_area = isMapped || session;
if (isMapped || session) { if (isMapped || session) {