From patchwork Fri May 27 14:44:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16080 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 4EB66C326E for ; Fri, 27 May 2022 14:45:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B13FD65655; Fri, 27 May 2022 16:45:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653662717; bh=mRI4K8BM6gjIEgTrzyaBiW5fZ9Mcb7eDb1PdyXPd77Y=; 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=QGMSTlUO8wzWQ71c7ckJDk7AgZZMHIvUqMuW0iYRg7+8Uetnjkd10aOwqJ9zgZ668 /fOF2iE8djwcBgs9bWuANPg4cFxrIA2dRMY0t9c7iUM2SNI4AlrnZ0plsm2clrztwQ RQGfjOfgKDvbwyN52BQPihcNOMGS/1TSdRAu94Wqct0QK+yr7I94J39Wq4HwziamSv Lles7oNV7L/7WDY9orFXpcfAX8btJ1sYsHyStM7q+uEiQhEs/GN1gq6g3nfeDe11Tk 5gi99GWNdblG12HOoif8xSAHuCswOAe1T4aaxC7byce76akP7Q3HnnC/C9tG9VLIHO zY7TrSeYSlrAg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 314AC6563D for ; Fri, 27 May 2022 16:45:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="PitKxECe"; 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 940D811CD; Fri, 27 May 2022 16:45:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653662708; bh=mRI4K8BM6gjIEgTrzyaBiW5fZ9Mcb7eDb1PdyXPd77Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PitKxECeBu4NZ0reWrhzxZwAAs56ZYkvipR177CzZHCEnhhVjt98uiXtIP/OG5cfo fzxwFXQylmf7r82m8X5PwYc6rItXF9iXUCARoAgX55qTeiQmBYd+qD+1lzCF9l6CuR NCqu/KAU1Ab4xEp5FSgCjikkvS/qvcTSABggMDrU= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Fri, 27 May 2022 17:44:26 +0300 Message-Id: <20220527144447.94891-10-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> References: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 09/30] 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