From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#38497: 27.0.50; Frame is not rendered when frame-resize-pixelwise it 't Date: Sun, 08 Dec 2019 17:21:22 +0800 Message-ID: <87k177b2b1.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87wobbjlm0.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <7caf72bb-1dc0-6e6d-430a-5c28295fb80c@gmx.at> <87tv6fjco6.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <20b3b02b-8018-49cd-4ab3-702ccf9e1c28@gmx.at> <87d0d0i7hk.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <25861c90-bdb5-e873-7da7-22a8d997f4b6@gmx.at> <87muc3bf9q.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <15ff2306-02dd-ea0c-d5e0-ccc6de865c22@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="228916"; mail-complaints-to="usenet@blaine.gmane.org" To: martin rudalics , 38497@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 10:24:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idsnS-000xM9-QW for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 10:24:10 +0100 Original-Received: from localhost ([::1]:57158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idsnR-00038Y-4K for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 04:24:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44651) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idsnL-00038P-G8 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 04:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idsnK-0005hI-4u for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 04:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idsnJ-0005gC-T0 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 04:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idsnJ-00036t-Ny for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 04:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2019 09:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38497 X-GNU-PR-Package: emacs Original-Received: via spool by 38497-submit@debbugs.gnu.org id=B38497.157579700211899 (code B ref 38497); Sun, 08 Dec 2019 09:24:01 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 8 Dec 2019 09:23:22 +0000 Original-Received: from localhost ([127.0.0.1]:50487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idsmg-00035r-1Q for submit@debbugs.gnu.org; Sun, 08 Dec 2019 04:23:22 -0500 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:45375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idsme-00035d-4p for 38497@debbugs.gnu.org; Sun, 08 Dec 2019 04:23:20 -0500 Original-Received: by mail-wr1-f53.google.com with SMTP id j42so12536442wrj.12 for <38497@debbugs.gnu.org>; Sun, 08 Dec 2019 01:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=rb0B/14MQb45omMGj1elLAKeuhbx7OYDUc/UM+/4R38=; b=pJfqjs9R5tVtcKyhRM9+26hrQ3ncA5OyhbDKmQDn+n6gnUHZdXoFnIRQEw4o5rxRGh /yDbcC0WBeXIYhhleNHonLK1jnxXyDonncLdmESoyaHipVeI4VZE99FyRNkIOi4gBEf+ fljS11bIrYBHAF0izFgV5cQpTlcI3XFJd0puq2lDeA/LzZkNDHGjoQo+0s1UEvWo6enR AYsq/M3/YqPLham1Zhii7+V/TRR7A0Nr8L7UkjTBDmeY4E8EPMs9ACNdA/NG4+wNOojB pYEkOm8GEQa06Ei+84vpaNO3u6dVjTeNm+5TGUVynM6mwSsEGvZE/omRyyuIxAhQaPpl Li+w== 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:in-reply-to:references:date :message-id:mime-version; bh=rb0B/14MQb45omMGj1elLAKeuhbx7OYDUc/UM+/4R38=; b=gq+tP8CK0xaGjbbXUqXX3GVmcPtJXY4+eW+5BKEwxemobKSqtpZTeJTlEU/bqhGLVW GY7CureUnYVnvClSpSeNHjgZIFrpycx+F2wqZhzBq4sz7PgEPk4PReL/asva3oa9JoSW dOTezqEVKGugWZqBu6oC/ayDsVPIlLvJNQChVov0R0KPvodDGACcKLd+x05Iv2Mfl53+ CXO4zOqqzBCefz+cghMoQ7KhimuoNBRduvBNLVriDa/UYqa2nQn/tNXXWvH6ylWenmPF NeOmnFWABKIivuk0HrxYcbsdk6m2aZ/V8glDCqU0CYpNmTMDgKFUdqppgjsGYAlTqOAp DKlA== X-Gm-Message-State: APjAAAX+pNPcWjiUAzEyW3lFHob+1pK6TwFyzit5BLnfy5Z/CTo4vJy8 i9zitDPFAy6+fsItef1paSk= X-Google-Smtp-Source: APXvYqwHZT63RdvEZ3SDuB3R2NX0Ea0Gvk7LC/jIeXL/BXROQ5dBIkYgktUm9NCZRw+hz5z5Gl4BAA== X-Received: by 2002:adf:82e7:: with SMTP id 94mr25107192wrc.60.1575796994237; Sun, 08 Dec 2019 01:23:14 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id q15sm22742512wrr.11.2019.12.08.01.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2019 01:23:13 -0800 (PST) In-Reply-To: <15ff2306-02dd-ea0c-d5e0-ccc6de865c22@gmx.at> 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: 209.51.188.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:173049 Archived-At: > How do you create such a frame in the first place? Originally, I observed the issue with my org-capture frame (I am using org-capture-pop-frame package) when it was called in a tile window layout. In my machine Meta-c is simply bound to bash -c 'emacsclient -e "(org-capture)"' The default emacs frame is just around a quarter of screen size (as it appears in floating window layout) and I can sometimes see it appearing for a split second in a tile layout before being resized. Also, as I showed in emacs -Q recipe, failure to redraw the frame can also be triggered in a maximised or a full screen emacs frame. The frame is also being resized there, though it is much less noticeable (just closing small gap below the maximised frame). > Unfortunately, that patch breaks pixelwise resizing. The frame could > then be resized only in character size increments, defeating the entire > original purpose of 'frame-resize-pixelwise'. Sure. Just wanted to document the minimal change required to make the bug disappear. Best, Ihor martin rudalics writes: > >> ... If not, can you tell me the four values here > >> when it fails to redraw - that of FRAME_PIXEL_WIDTH (f), pixel_width, > >> FRAME_PIXEL_HEIGHT (f) and pixel_height. > > > > Not sure how to get those. > > By running Emacs under the debugger and putting a breakpoint at that > position. But let's put that aside for the moment since, as you say, > this part is not the real cause of the problem anyway. > > > Actually, this piece of code seems to be a more specific reason > > triggering the bug (see the relevant patch attached - that patch makes > > the bug disappear). > > Unfortunately, that patch breaks pixelwise resizing. The frame could > then be resized only in character size increments, defeating the entire > original purpose of 'frame-resize-pixelwise'. > > > I tried your suggestion (no idea how it is different from original code > > though). It makes no difference. > > I would have been surprised if it did. > > > A possible hint to why this code fails to resize the frame is that my > > WM resizes the frame as soon as it is created. It is not a gradual > > resizing with mouse, but rather instant resize to pre-calculated size > > (according to layout). I can sometimes even see the frame being created > > with much smaller size for a split second followed by resizing it to > > target size. > > How do you create such a frame in the first place? > > martin