From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24091: 24.5; High CPU usage at startup while hidden Date: Sun, 4 Sep 2016 09:40:53 -0400 Message-ID: References: <24533f31-9fc2-b38e-aaeb-561616cdf77f@gmail.com> <87shut9pyk.fsf@users.sourceforge.net> <83lh0lq9n5.fsf@gnu.org> <83oa5fp1zb.fsf@gnu.org> <877fbkw7b1.fsf@users.sourceforge.net> <83inv1fnf9.fsf@gnu.org> <83zinodghv.fsf@gnu.org> <83y438de6m.fsf@gnu.org> <57CBCE4F.5040705@gmx.at> <57CC1E5F.8010107@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1472996543 4864 195.159.176.226 (4 Sep 2016 13:42:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Sep 2016 13:42:23 +0000 (UTC) Cc: Aiken , =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel , 24091@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 04 15:42:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgXge-0000QI-13 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Sep 2016 15:42:16 +0200 Original-Received: from localhost ([::1]:49948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgXgb-0003ES-Pd for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Sep 2016 09:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgXgW-0003EL-Av for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 09:42:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgXgQ-0006zm-GN for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 09:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgXgQ-0006zi-C7 for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 09:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bgXgQ-0002B5-6E for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2016 09:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Sep 2016 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 24091-submit@debbugs.gnu.org id=B24091.14729964628293 (code B ref 24091); Sun, 04 Sep 2016 13:42:02 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 4 Sep 2016 13:41:02 +0000 Original-Received: from localhost ([127.0.0.1]:49198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgXfS-00029h-Gi for submit@debbugs.gnu.org; Sun, 04 Sep 2016 09:41:02 -0400 Original-Received: from mail-oi0-f44.google.com ([209.85.218.44]:36706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgXfQ-000297-2K for 24091@debbugs.gnu.org; Sun, 04 Sep 2016 09:41:00 -0400 Original-Received: by mail-oi0-f44.google.com with SMTP id w78so29725785oie.3 for <24091@debbugs.gnu.org>; Sun, 04 Sep 2016 06:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=exh7tvf4A3o7ThJJtkSPI1cYpsbhJAPowaFxYHlcfO0=; b=n4s0Y60VD5UqZw2jI1Oz7pTJkKk52iUCWLidPQYbzRLYYcNV7dilI3uvFEuQI0GhMW 8D9cphuxi2/EPCpethVodG7rEGqEp0VvuSa2W6beRCtgPG7+CNXwUmHMo2rng+4X54VA QeEb9d873uc1Uooiu4v/s2EwCwPqwSJyxaYsbHEpZemK3tB0YmOFvidDqIoQZobwxfL7 CfmU2ylwi9fq+/k5WXxFQBBFUjbxDPCV2kUTvl49WJGyNfNUFYXOyst7eHYWna73FGza 1RJOnPplfcN780Oup7HH3tHl3uAXCoGeV4/Akng2WTJRpg66Ftw2StMlrFCoSKJvp3B+ HQKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=exh7tvf4A3o7ThJJtkSPI1cYpsbhJAPowaFxYHlcfO0=; b=nF6lPHCRbwu0xizIzAbCd2eTE0pa+tN4Twrcfk9zBJ5lz7lsmvJ3BTCjZi5UHGPzZ5 vKqlgnl+wlyHXgvarHBR4Hml3DpOLYrmxdbGKaQATdmpuvwEnmRd5wvCX3ITsZNjZeAh c4rlJZI6w8eqlO2mTcSHFvpVWPT/nu/o/2hQThp6H/p5TcNg/Osnw12nToa+P4NAa6T7 3mO3zrQDLpR61HnSmyKmhTIiAo60efmKs889PkMn7V3ADibAWMe+4/RBJr479XSaP9iN UACpbMobGW3iwfKsbrTAAD9CenLB4+OU5DVrWzkpFc3/GkVEHy0dgl/ce+mAgiaUsHyJ WNOQ== X-Gm-Message-State: AE9vXwM4HT/zfza3OJ+DPyasQp57E43xPTpY1UehoSII/2HYsCl31DvKX54bDTkm/ZzV3xSeXaxRoaTHnIhc3Q== X-Received: by 10.157.17.83 with SMTP id p19mr7230027otp.196.1472996454340; Sun, 04 Sep 2016 06:40:54 -0700 (PDT) Original-Received: by 10.157.7.195 with HTTP; Sun, 4 Sep 2016 06:40:53 -0700 (PDT) In-Reply-To: <57CC1E5F.8010107@gmx.at> X-Google-Sender-Auth: BwIBjLfts_LqJH15vQe-wSlzgJk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122934 Archived-At: On Sun, Sep 4, 2016 at 9:15 AM, martin rudalics wrote: >> The 2nd time, there are two iterations of the frame loop. In the first >> iteration, (wdesc == XtWindow (x->widget)) is false. > > I suppose this happens for the frame x_make_frame_visible is waiting for > to become visible. Correct? Having trouble parsing your sentence. This happens before x_make_frame_visible gets called, and before the actual frame is visible. Is that what you're asking? During the infloop[1] of x_make_frame_visible, I can see an indication for a new window coming up in the target workspace, but the frame is still not visible because I haven't switched to the workspace yet. The infloop gets one ConfigureNotify event, and then nothing else. [1]: This one: /* Process X events until a MapNotify event has been seen. */ while (!FRAME_VISIBLE_P (f))