From 1dddf271d253c0d813ab7b232b795331a246f019 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 20 Jul 2022 16:56:38 +0300 Subject: [PATCH] x11: Inline condition to avoid potential extra call --- src/x11window.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/x11window.cpp b/src/x11window.cpp index dbf8c66252..c45c960b78 100644 --- a/src/x11window.cpp +++ b/src/x11window.cpp @@ -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) {