From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhb2v-0001ki-Ja for qemu-devel@nongnu.org; Wed, 07 Sep 2016 07:29:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhb2r-0008EY-Dk for qemu-devel@nongnu.org; Wed, 07 Sep 2016 07:29:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhb2r-0008EU-8b for qemu-devel@nongnu.org; Wed, 07 Sep 2016 07:29:33 -0400 Message-ID: <1473247771.28663.63.camel@redhat.com> From: Gerd Hoffmann Date: Wed, 07 Sep 2016 13:29:31 +0200 In-Reply-To: <1471984640.899954839@f422.i.mail.ru> References: <1471984640.899954839@f422.i.mail.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/2] SDL2: dont try show window if it was hidden by DE/WM. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrei Karas Cc: qemu-devel On Di, 2016-08-23 at 23:37 +0300, Andrei Karas wrote: > Signed-off-by: Andrei Karas > --- > ui/sdl2.c | 3 --- > 1 file changed, 3 deletions(-) >=20 > diff --git a/ui/sdl2.c b/ui/sdl2.c > index 4441e99..9523f64 100644 > --- a/ui/sdl2.c > +++ b/ui/sdl2.c > @@ -584,9 +584,6 @@ static void handle_windowevent(SDL_Event *ev) > } > break; > case SDL_WINDOWEVENT_HIDDEN: > - if (!scon->hidden) { > - SDL_ShowWindow(scon->real_window); > - } Ok, but we should update scon->hidden with the new state then I guess? And probably also in case the DE/WM shows the window again? cheers, Gerd