From patchwork Tue May 24 11:46:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16016 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 63508C3271 for ; Tue, 24 May 2022 11:46:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 21F0C65671; Tue, 24 May 2022 13:46:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653392805; bh=98Tl2l7nSb5jbMU+doXcvRwG06fg31CD540El0/whyg=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=lIso8v+Ahc/dKVfshL90KvU5c4dPS7CRd7p8inFZbcGoPqace3Bz876vfB69+o6qI BK3cKf6zrrMXrvoe78ZquhmM7Y13hhBC1oEj4KvFa/SStQ5FNSBObAibDzTerlWtFK 6bjKA+ltWJMaknlhe/v59e0ay1oY9rhwxzApmKCpDtJ/nmxR7dlrwoigwm48t1foNW A6zh7f3sohCy+CNiqpZqYQnxXGIF+CdDhmA29HUQUXyknENP0Y9Bu3KSmOU7vJwWSq kGd874GH9A4M6a7day1/P+7JFYoqs8axsewac8j4BY7oyegKDyNyE36f3BTsyp0HRj DJtHoI+c7RUJw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C2BF965662 for ; Tue, 24 May 2022 13:46:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="W3nxvUBT"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 281E7A16; Tue, 24 May 2022 13:46:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653392794; bh=98Tl2l7nSb5jbMU+doXcvRwG06fg31CD540El0/whyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W3nxvUBToiq2MzSr9nwhdofq3TckokrB7dQvv1rWbeRnvYqwpd8ePYU7721XYjOGM JvztgWbAq6OrIhKj+LOfcZ5nUBPTIs816Wp4cbwRCpY/GYmM8GCIfA/Zvrsq0bHGjl JQ2qDepBAR6f+zR2rmo2XZCuxbGBwlF8anipgyUY= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Tue, 24 May 2022 14:46:00 +0300 Message-Id: <20220524114610.41848-10-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220524114610.41848-1-tomi.valkeinen@ideasonboard.com> References: <20220524114610.41848-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 09/19] py: cam: Drop WA_ShowWithoutActivating X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Drop WA_ShowWithoutActivating from the Qt renderers. I added the flag during development phase as I didn't want the window to take the focus, but it should be removed now. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- src/py/cam/cam_qt.py | 1 - src/py/cam/cam_qtgl.py | 1 - 2 files changed, 2 deletions(-) diff --git a/src/py/cam/cam_qt.py b/src/py/cam/cam_qt.py index 70bdb7bb..03096920 100644 --- a/src/py/cam/cam_qt.py +++ b/src/py/cam/cam_qt.py @@ -187,7 +187,6 @@ class QtRenderer: for ctx in self.contexts: for stream in ctx['streams']: window = MainWindow(ctx, stream) - window.setAttribute(QtCore.Qt.WA_ShowWithoutActivating) window.show() windows.append(window) diff --git a/src/py/cam/cam_qtgl.py b/src/py/cam/cam_qtgl.py index 3fb7dde3..c9e367a2 100644 --- a/src/py/cam/cam_qtgl.py +++ b/src/py/cam/cam_qtgl.py @@ -137,7 +137,6 @@ class QtRenderer: self.app = QtWidgets.QApplication([]) window = MainWindow(self.state) - window.setAttribute(QtCore.Qt.WA_ShowWithoutActivating) window.show() self.window = window