From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#38497: 27.0.50; Frame is not rendered when frame-resize-pixelwise it 't Date: Sat, 7 Dec 2019 17:29:57 +0100 Message-ID: <25861c90-bdb5-e873-7da7-22a8d997f4b6@gmx.at> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44432"; mail-complaints-to="usenet@blaine.gmane.org" To: Ihor Radchenko , 38497@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 07:16:38 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 1idprw-000BPV-3X for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 07:16:36 +0100 Original-Received: from localhost ([::1]:56104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idpru-0008BY-1V for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 01:16:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32895) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idprP-0008B7-Vm for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 01:16:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idprO-0001eT-OC for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 01:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44401) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idprO-0001d4-Ec for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 01:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idprO-0001Yx-BU for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 01:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2019 06:16:02 +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.15757857555576 (code B ref 38497); Sun, 08 Dec 2019 06:16:02 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 8 Dec 2019 06:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:50370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idprG-0001R5-38 for submit@debbugs.gnu.org; Sun, 08 Dec 2019 01:15:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:33065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idprD-0001KK-T0 for 38497@debbugs.gnu.org; Sun, 08 Dec 2019 01:15:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1575785745; bh=ivCTqTF0x19tXhmi4bT3Xn7Dbi/pkE9KdoHPf3wMfnk=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=D/rNM5JTaRaO0dRppYAewy8pHmx3qCpZkzJC1hGtWTtvQ/wZOtJMtU8VUQrof1B/D 49JYBHjgmlzYB2vH0VOa0cZJAPqS0lCWDpUwM5mS8dD28FisabE9w0CexrMJy4gN4C IxjJeISBB17FF7MSQK83m4tNjSwazfjlq69SIESw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.215]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1My32L-1hp5kg2Utb-00zTxf; Sat, 07 Dec 2019 17:29:57 +0100 In-Reply-To: <87d0d0i7hk.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Content-Language: de-AT X-Provags-ID: V03:K1:AcZ3Y3rsCPcAL9NYA5dfPuP0NpgNbXbUddwYKSmp3JGLs71vGVw C+SqgUMUGashVanrINKgVfUZhdynKE5eqZbowqlqxsGVBLLRtq39qnkO0AmoMqRqa5EalxS VvLqfsJGmBEH2AURN3gKcTBTk/3Lscldb8hPJgPil4CFnEbeVkrfwMce/qnNJCeeWEAXEy5 njBs+HiwqoXQDN2n5iEhw== X-UI-Out-Filterresults: notjunk:1;V03:K0:DUyayv2aIFA=:Fih7ZYApuc4pOY1lD/+se8 CIufPIMQ3TiNcf+rZdG6biqJvm5rGwtWi1fWSzA45/20vee9UgLwan/0PkofD88FTWT0c/tu3 Zvz7uHIYb86wqP/kD4mCMpSKnSQAs44ZCKf2xDGB1B8jMGye4a/M8ZDD9AxhklX+sudq0Kwaq 2DT7tmVlpH8g/1vnCrnBw/nypSccRxO/cSW8Ny8XimnMRTLBrfqTNo+iaOZDHu4Sl08GW77za Jx/ZF7j+BPtO9C4y3QWPbMaM8ZxLJTwKHuYO93itrpR0KXOzZOefKmw8ge2rc0k6YqSUq3tqM BeGFH/de1FtbM8aAKcVZNm7px47qqB0HGLBEWMLrnG/iBJ9jDzKrwG6zYLrlUOM5cXvH1ilGX ObEA8CgAr+1pTM5iLIQGAqSuDozpzCjzfk30ihrZ521NGc7YTdta7yJsT+RnOx95mUiGm+viB f/kcsWH7ttmwe9x4vwJ5FT0+xdEWFPbE4+xO7MSm+MUtWo82dyx6CbqJXt7oEDvG8D388+qUE vQOTiDvcJvie7jX7k2lunJ/HPqUco47JbNsWqQmAwR3pFdcXmaNyC4qDlckKOqFaZcA1TBsOf uAfC1+waFwip3d1fTS8JeeEZenW7dnkL/PKlELoVUo2k2c4w67xUwABvLY4UbF3piAHK4QlK+ rzvtSoS9HgnnFOduHECUruZ//VQ3jQqWG530SL3hfE8zc25vbhKRxk2fxEmJilXtMgX6u5vId HhX5ndWqJZib4bkA+138efvaza1mhWby1NlDhynHlMSxFmVwLF6Q51XIQkaxIFNWwJFF/TcS 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:173036 Archived-At: > The attached patch is the minimal patch making the rendering issue > disappear. Thank you. > Also, I cannot reproduce the issue when I try to configure > emacs just with ./configure --with-x-toolkit=lucid. The options I used > to compile emacs in my OS (I am using gentoo) are > > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu > --host=x86_64-pc-linux-gnu --mandir=/usr/share/man > --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc > --localstatedir=/var/lib --disable-silent-rules > --docdir=/usr/share/doc/emacs-vcs-27.0.9999 > --htmldir=/usr/share/doc/emacs-vcs-27.0.9999/html --libdir=/usr/lib64 > --program-suffix=-emacs-27-vcs --includedir=/usr/include/emacs-27-vcs > --infodir=/usr/share/info/emacs-27-vcs --localstatedir=/var > --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp > --without-compress-install --without-hesiod --without-pop > --with-dumping=pdumper --with-file-notification=inotify --enable-acl > --with-dbus --with-modules --without-gameuser --with-libgmp --with-gpm > --without-json --without-kerberos --without-kerberos5 --with-lcms2 > --with-xml2 --without-mailutils --without-selinux --with-gnutls > --without-libsystemd --with-threads --without-wide-int --with-zlib > --with-sound=alsa --with-x --without-ns --without-gconf > --without-gsettings --without-toolkit-scroll-bars --with-gif --with-jpeg > --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick > --with-xft --with-cairo --without-harfbuzz --without-libotf Is it a good idea to build with xft _and_ cairo? And what's bad about libotf? > --without-m17n-flt --with-x-toolkit=lucid --with-xaw3d - ew->core.width = (frame_resize_pixelwise - ? FRAME_PIXEL_WIDTH (f) - : pixel_width); - ew->core.height = (frame_resize_pixelwise - ? FRAME_PIXEL_HEIGHT (f) - : pixel_height); + ew->core.width = (pixel_width); + ew->core.height = (pixel_height); Maybe a conversion problem. Does ew->core.width = (frame_resize_pixelwise ? (Dimension) FRAME_PIXEL_WIDTH (f) : pixel_width); ew->core.height = (frame_resize_pixelwise ? (Dimension) FRAME_PIXEL_HEIGHT (f) : pixel_height); yield better results? 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. This one - XtNwidthInc, (XtArgVal) (frame_resize_pixelwise ? 1 : cw), - XtNheightInc, (XtArgVal) (frame_resize_pixelwise ? 1 : ch), + XtNwidthInc, (XtArgVal) (cw), + XtNheightInc, (XtArgVal) (ch), is more mysterious. Why should 1 fail here? What happens when you do cw = frame_resize_pixelwise ? 1 : cw; ch = frame_resize_pixelwise ? 1 : ch; XtVaSetValues (wmshell, XtNbaseWidth, (XtArgVal) base_width, XtNbaseHeight, (XtArgVal) base_height, XtNwidthInc, (XtArgVal) cw, XtNheightInc, (XtArgVal) ch, XtNminWidth, (XtArgVal) base_width, XtNminHeight, (XtArgVal) base_height, NULL); instead? martin