From nobody Thu Nov 6 08:24:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1540397486214996.4844044353723; Wed, 24 Oct 2018 09:11:26 -0700 (PDT) Received: from localhost ([::1]:49310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFLkY-0006cw-Co for importer@patchew.org; Wed, 24 Oct 2018 12:11:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFKXp-0000E7-QB for qemu-devel@nongnu.org; Wed, 24 Oct 2018 10:54:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFKIE-0002zm-4P for qemu-devel@nongnu.org; Wed, 24 Oct 2018 10:37:56 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFKID-0002zG-TB; Wed, 24 Oct 2018 10:37:54 -0400 Received: by mail-lj1-f195.google.com with SMTP id z9-v6so169765ljk.9; Wed, 24 Oct 2018 07:37:53 -0700 (PDT) Received: from localhost.localdomain (77-254-1-82.adsl.inetia.pl. [77.254.1.82]) by smtp.gmail.com with ESMTPSA id w19-v6sm679750lji.73.2018.10.24.07.37.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 07:37:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4plvH/cr3X+I0G5yEN4wdOhTXgMZK0fRnYvqcoDUJTA=; b=dhg6tLjTvp55TK+SnWGyj45JUEVXRquACQf6Q0I8fnFTl+43J9F2XeKR7oEaIx1+ws rudlmIq8tJNbFCZtTZvnuKfFmnH/idvuwRSz7d+cCFMuqAyKkjCd/Kd2EmUnj6eGGNCD O6e8ZDrLm+RGAy18g3V3aI6+krdRrkjRHc+27g/bVW0bPvCF/qyTYL4eq9CU8RdF7gs5 hF8j+YbYr6v6PIH8jfGwbUgTl0kWYYMUrUsrvI7BTQUeYkjxyJNV3LcbMcL1TvUscyDR ZwDypKknrMR9ZEfyIxubrcdecpYpfvYUSKbE9TKUPDxvdo3sqAJ/qMJNrBSvzr2jywzi Mpzg== X-Gm-Message-State: AGRZ1gJV1PBc2QiRiYwK9QTGNtbKnlREo7yKjp4D6sFqYRvLw82gTRwz 2u3rT1dg2mcLKu2+fILg9iI= X-Google-Smtp-Source: AJdET5frcZS91lSOzz2Br+zPZCh4pgmWjuaRbe1932hc4zDPFsQLWrIaZrd1pB5QO7HAr59Aorce5A== X-Received: by 2002:a2e:a28b:: with SMTP id k11-v6mr1990811lja.24.1540391872217; Wed, 24 Oct 2018 07:37:52 -0700 (PDT) From: Sebastian Krzyszkowiak To: Gerd Hoffmann , qemu-devel@nongnu.org, qemu-trivial@nongnu.org, dos@dosowisko.net Date: Wed, 24 Oct 2018 16:37:48 +0200 Message-Id: <20181024143748.4425-1-dos@dosowisko.net> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.208.195 X-Mailman-Approved-At: Wed, 24 Oct 2018 12:09:48 -0400 Subject: [Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Without that, window effects in KWin get suspended as soon as any qemu-sdl window becomes visible. While the SDL default makes sense for games, it's not really suitable for QEMU. Signed-off-by: Sebastian Krzyszkowiak --- ui/sdl2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 2696b95c79..a10b6e3a08 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -786,6 +786,9 @@ static void sdl2_display_init(DisplayState *ds, Display= Options *o) SDL_GetError()); exit(1); } +#ifdef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR /* only available since= SDL 2.0.8 */ + SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); +#endif SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1"); memset(&info, 0, sizeof(info)); SDL_VERSION(&info.version); --=20 2.19.1