From unknown Wed Aug 20 00:03:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8919 <8919@debbugs.gnu.org> To: bug#8919 <8919@debbugs.gnu.org> Subject: Status: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop Reply-To: bug#8919 <8919@debbugs.gnu.org> Date: Wed, 20 Aug 2025 07:03:00 +0000 retitle 8919 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 d= esktop reassign 8919 emacs submitter 8919 Dirk Ullrich severity 8919 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 22 19:02:30 2011 Received: (at submit) by debbugs.gnu.org; 22 Jun 2011 23:02:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZWRI-0002XD-Gu for submit@debbugs.gnu.org; Wed, 22 Jun 2011 19:02:29 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZLEP-0008GL-E9 for submit@debbugs.gnu.org; Wed, 22 Jun 2011 07:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZLEI-0002mw-Ey for submit@debbugs.gnu.org; Wed, 22 Jun 2011 07:04:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:41059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZLEI-0002mq-7I for submit@debbugs.gnu.org; Wed, 22 Jun 2011 07:04:18 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZLEG-0008PW-Ew for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2011 07:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZLEE-0002mU-3x for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2011 07:04:16 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:48255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZLED-0002mK-Gh for bug-gnu-emacs@gnu.org; Wed, 22 Jun 2011 07:04:13 -0400 Received: by yxn22 with SMTP id 22so365575yxn.0 for ; Wed, 22 Jun 2011 04:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=DPWwQsY/PFketjPkV0joCWKOU8JhlZ0TyxQkaJqe7xw=; b=ukcSfcFoXqrEKono+0+6gUuv40jLqf3+ItxRSMJp91Qa7CyIzCOWjr6JwLeTDtfiRU LOHR4eQi0g5VngZDAq85yOBHkXue7iOHAzXuLxQKrpDcznw3GKCXVM3N6mmJXalKbpfo nD2croclb3ZTAlUVs3rS/RT6deAh8BDw8rjIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=RkpW+kCroS+MsoT4eKnevc4ucSdVoY84NCokKCdEq1g9HGttPKHN5K2nO8ImkQApID 9+PJaYblr/QwSqCws8UUqLZy5Xf61FrPFsklM2pKegSyff5i6QP1t/0TlLLQpj5D8xVh FtDRCLAebrbsC9V5U9QhKb4BsmYwvfaChF960= MIME-Version: 1.0 Received: by 10.150.114.8 with SMTP id m8mr527647ybc.290.1308740650463; Wed, 22 Jun 2011 04:04:10 -0700 (PDT) Received: by 10.150.178.19 with HTTP; Wed, 22 Jun 2011 04:04:10 -0700 (PDT) Date: Wed, 22 Jun 2011 13:04:10 +0200 Message-ID: Subject: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop From: Dirk Ullrich To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 22 Jun 2011 19:02:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Please check that the From: line gives an address where you can be reached. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 1. Compile Emacs from Bzr repository with the GTK3 toolkit. 2. Start Emacs on a KDE4 desktop. 3. Starting to use Emacs dimish its frame size, and the frame size is changing with nearly every command. Remark: Using the GTK2 toolkit avoids this bug. Maybe it is caused by the following change reported in `src/ChangeLog': 2011-06-14 Jan Dj=E4rv * xfns.c (x_set_scroll_bar_default_width): Remove argument to xg_get_default_scrollbar_width. * gtkutil.c: Include emacsgtkfixed.h if HAVE_GTK3. (int_gtk_range_get_value): Move to the scroll bar part of the file. (style_changed_cb): Call update_theme_scrollbar_width and call x_set_scroll_bar_default_width and xg_frame_set_char_size for all frames (Bug#8505). (xg_create_frame_widgets): Call emacs_fixed_new if HAVE_GTK3 (Bug#8505). Call gtk_window_set_resizable if HAVE_GTK3. (x_wm_set_size_hint): Call emacs_fixed_set_min_size with min width and height if HAVE_GTK3 (Bug#8505). (scroll_bar_width_for_theme): New variable. (update_theme_scrollbar_width): New function. (xg_get_default_scrollbar_width): Move code to update_theme_scrollbar_width, just return scroll_bar_width_for_theme. (xg_initialize): Call update_theme_scrollbar_width. * gtkutil.h (xg_get_default_scrollbar_width): Remove argument. * emacsgtkfixed.c, emacsgtkfixed.h: New files. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.0.50/etc/DEBUG. In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.0.11) of 2011-06-22 on red Windowing system distributor `The X.Org Foundation', version 11.0.11002000 configured using `configure '--prefix=3D/usr' '--sysconfdir=3D/etc' '--localstatedir=3D/var' '--libexecdir=3D/usr/lib' '--mandir=3D/usr/share/man' '--without-sound' '--with-x-toolkit=3Dgtk3' 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe' 'LDFLAGS=3D-Wl,--hash-style=3Dgnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/site-lisp/coq-db hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-db /usr/share/emacs/site-lisp/coq-syntax hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-syntax /usr/share/emacs/site-lisp/coq hides /usr/share/emacs/site-lisp/ProofGeneral/coq/coq Features: (shadow sort gnus-util time-date mail-extr message idna sendmail regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 23 13:48:38 2011 Received: (at 8919) by debbugs.gnu.org; 23 Jun 2011 17:48:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZo17-0001AC-Hw for submit@debbugs.gnu.org; Thu, 23 Jun 2011 13:48:37 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZo15-00019t-31 for 8919@debbugs.gnu.org; Thu, 23 Jun 2011 13:48:36 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 0F1DAEB63E for <8919@debbugs.gnu.org>; Thu, 23 Jun 2011 19:48:28 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai5TAMB7A05V4S1kPGdsb2JhbABSpycLAQEBATcyiHXALoYtBJZXiys X-IronPort-AV: E=Sophos;i="4.65,414,1304287200"; d="scan'208";a="23845146" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 23 Jun 2011 19:48:28 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id B13027FA05A; Thu, 23 Jun 2011 19:48:27 +0200 (CEST) Message-ID: <4E037C6A.9010807@swipnet.se> Date: Thu, 23 Jun 2011 19:48:26 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dirk Ullrich Subject: Re: bug#8919: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8919 Cc: 8919@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hi. We have had shrinking on KDE before GTK3. It comes and goes. GTK3 now sets wm size hits behind our backs, it is probably that that tri= ggers it. Jan D. Dirk Ullrich skrev 2011-06-22 13.04: > This bug report will be sent to the Free Software Foundation, > not to your local site managers! > Please write in English if possible, because the Emacs maintainers > usually do not have translators to read other languages for them. > > Please check that the From: line gives an address where you can be reac= hed. > Your report will be posted to the bug-gnu-emacs@gnu.org mailing list > and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. > > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug. If you can, give > a recipe starting from `emacs -Q': > > 1. Compile Emacs from Bzr repository with the GTK3 toolkit. > 2. Start Emacs on a KDE4 desktop. > 3. Starting to use Emacs dimish its frame size, and the frame size is > changing with nearly every command. > > Remark: Using the GTK2 toolkit avoids this bug. Maybe it is caused by > the following change reported in `src/ChangeLog': > 2011-06-14 Jan Dj=E4rv > > * xfns.c (x_set_scroll_bar_default_width): Remove argument to > xg_get_default_scrollbar_width. > > * gtkutil.c: Include emacsgtkfixed.h if HAVE_GTK3. > (int_gtk_range_get_value): Move to the scroll bar part of the file. > (style_changed_cb): Call update_theme_scrollbar_width and call > x_set_scroll_bar_default_width and xg_frame_set_char_size for > all frames (Bug#8505). > (xg_create_frame_widgets): Call emacs_fixed_new if HAVE_GTK3 (Bug#8505= ). > Call gtk_window_set_resizable if HAVE_GTK3. > (x_wm_set_size_hint): Call emacs_fixed_set_min_size with min width > and height if HAVE_GTK3 (Bug#8505). > (scroll_bar_width_for_theme): New variable. > (update_theme_scrollbar_width): New function. > (xg_get_default_scrollbar_width): Move code to > update_theme_scrollbar_width, just return scroll_bar_width_for_theme. > (xg_initialize): Call update_theme_scrollbar_width. > > * gtkutil.h (xg_get_default_scrollbar_width): Remove argument. > > * emacsgtkfixed.c, emacsgtkfixed.h: New files. > > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > For information about debugging Emacs, please read the file > /usr/share/emacs/24.0.50/etc/DEBUG. > > > In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.0.11) > of 2011-06-22 on red > Windowing system distributor `The X.Org Foundation', version 11.0.11002= 000 > configured using `configure '--prefix=3D/usr' '--sysconfdir=3D/etc' > '--localstatedir=3D/var' '--libexecdir=3D/usr/lib' > '--mandir=3D/usr/share/man' '--without-sound' '--with-x-toolkit=3Dgtk3' > 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe' > 'LDFLAGS=3D-Wl,--hash-style=3Dgnu -Wl,--as-needed'' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: de_DE.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > M-x r e p o r t > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > > Load-path shadows: > /usr/share/emacs/site-lisp/coq-db hides > /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-db > /usr/share/emacs/site-lisp/coq-syntax hides > /usr/share/emacs/site-lisp/ProofGeneral/coq/coq-syntax > /usr/share/emacs/site-lisp/coq hides > /usr/share/emacs/site-lisp/ProofGeneral/coq/coq > > Features: > (shadow sort gnus-util time-date mail-extr message idna sendmail > regexp-opt format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies > mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util > mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug tooltip > ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd > fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer > select scroll-bar mouse jit-lock font-lock syntax facemenu font-core > frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai > tai-viet lao korean japanese hebrew greek romanian slovak czech europea= n > ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help > simple abbrev minibuffer loaddefs button faces cus-face files > text-properties overlay sha1 md5 base64 format env code-pages mule > custom widget hashtable-print-readable backquote make-network-process > dbusbind dynamic-setting system-font-setting font-render-setting > move-toolbar gtk x-toolkit x multi-tty emacs) > > From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 24 05:47:15 2011 Received: (at 8919) by debbugs.gnu.org; 24 Jun 2011 09:47:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa2yp-0005lJ-6J for submit@debbugs.gnu.org; Fri, 24 Jun 2011 05:47:15 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa2ym-0005l6-Fi for 8919@debbugs.gnu.org; Fri, 24 Jun 2011 05:47:13 -0400 Received: by ywp31 with SMTP id 31so1159813ywp.3 for <8919@debbugs.gnu.org>; Fri, 24 Jun 2011 02:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZSbvJ7uOioHwK0mrAqjY9zK38FJRAiRfF09MPuQgWk8=; b=T4OVULsA5TQc+jmdoo/D3PwgnQd0aq0ye5MNPeaWPvwtxiifjtNNYwGMrs40j68vkn y6mqaicsFyJMl7AOBSn881ttYPGyYqHN88QYJjAvtPek4u8bOjSg0JbOiDOoY/A028BS 2j4BRALrrYdEVfmccxU1ltka3aaG2y2QUyVgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uUyf+2QHiVLupYcIa4hdqFA0uqexzMJMorfiltuXfPwNQy5tJlPRL+qV+ftbcbUYJQ GH2wtjJJ5i9+5wtkLGkOLj9LtUtGzmHJk5XpM+zx2ngZwRTuREjeRnpzAZtNYE5aEyWn O9B9My9HwRje8e2CPcLJQcnN8sGVDOw+c7+74= MIME-Version: 1.0 Received: by 10.151.79.16 with SMTP id g16mr3301224ybl.404.1308908826640; Fri, 24 Jun 2011 02:47:06 -0700 (PDT) Received: by 10.150.178.19 with HTTP; Fri, 24 Jun 2011 02:47:06 -0700 (PDT) In-Reply-To: <4E037C6A.9010807@swipnet.se> References: <4E037C6A.9010807@swipnet.se> Date: Fri, 24 Jun 2011 11:47:06 +0200 Message-ID: Subject: Re: bug#8919: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop From: Dirk Ullrich To: 8919@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 8919 Cc: =?ISO-8859-1?Q?Jan_Dj=E4rv?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.5 (----) Hi Jan, 2011/6/23 Jan Dj=E4rv : > Hi. > > We have had shrinking on KDE before GTK3. =A0It comes and goes. > GTK3 now sets wm size hits behind our backs, it is probably that that > triggers it. > > =A0 =A0 =A0 =A0Jan D. [...] I must confess that this the first time that I suffer from this shrinking of Emacs on KDE. (I use the Emacs' development version built for the GTK2 toolkit right from the beginning.) Maybe that the bug occured for an Emacs revision I didn't build. And for GTK2 it even doesn't happen at all yet - at least for me. By the way - for curiousity I reverted to revision 104583 i.e. the last one for your last GTK3-related changes. For this revision the shrinking error does not occur. Dirk From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 24 06:58:15 2011 Received: (at 8919) by debbugs.gnu.org; 24 Jun 2011 10:58:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa45X-0001yU-A6 for submit@debbugs.gnu.org; Fri, 24 Jun 2011 06:58:15 -0400 Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa45U-0001yG-0t for 8919@debbugs.gnu.org; Fri, 24 Jun 2011 06:58:12 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 24701EA410 for <8919@debbugs.gnu.org>; Fri, 24 Jun 2011 12:58:05 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArhTACBtBE5V4S1kPGdsb2JhbABSiRGeIwsBAQEBNzKIcwLBcIYtBJZjiyw X-IronPort-AV: E=Sophos;i="4.65,418,1304287200"; d="scan'208";a="23991654" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 24 Jun 2011 12:58:05 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 2481D7FA05A; Fri, 24 Jun 2011 12:58:05 +0200 (CEST) Message-ID: <4E046DBD.1040609@swipnet.se> Date: Fri, 24 Jun 2011 12:58:05 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dirk Ullrich Subject: Re: bug#8919: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop References: <4E037C6A.9010807@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8919 Cc: 8919@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Dirk Ullrich skrev 2011-06-24 11.47: > I must confess that this the first time that I suffer from this > shrinking of Emacs on KDE. (I use the Emacs' development version built > for the GTK2 toolkit right from the beginning.) Maybe that the bug > occured for an Emacs revision I didn't build. And for GTK2 it even > doesn't happen at all yet - at least for me. > > By the way - for curiousity I reverted to revision 104583 i.e. the > last one for your last GTK3-related changes. For this revision the > shrinking error does not occur. Hi. This is not surprising, it is a timing issue. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 11:36:26 2011 Received: (at 8919) by debbugs.gnu.org; 26 Jun 2011 15:36:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QarNq-0007zn-8u for submit@debbugs.gnu.org; Sun, 26 Jun 2011 11:36:26 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QarNn-0007zZ-Ob for 8919@debbugs.gnu.org; Sun, 26 Jun 2011 11:36:24 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 8C75DEA283 for <8919@debbugs.gnu.org>; Sun, 26 Jun 2011 17:36:17 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqtVAExRB05V4S1kPGdsb2JhbABSiRGeNQsBAQEBNzKIdr9ChjAElnGLLw X-IronPort-AV: E=Sophos;i="4.65,428,1304287200"; d="scan'208";a="201470165" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 26 Jun 2011 17:36:17 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 7F58C7FA05A; Sun, 26 Jun 2011 17:36:16 +0200 (CEST) Message-ID: <4E0751F0.7080004@swipnet.se> Date: Sun, 26 Jun 2011 17:36:16 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dirk Ullrich Subject: Re: bug#8919: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop References: <4E037C6A.9010807@swipnet.se> <4E046DBD.1040609@swipnet.se> In-Reply-To: <4E046DBD.1040609@swipnet.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8919 Cc: 8919@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Jan Dj=E4rv skrev 2011-06-24 12.58: > > > Dirk Ullrich skrev 2011-06-24 11.47: > >> I must confess that this the first time that I suffer from this >> shrinking of Emacs on KDE. (I use the Emacs' development version built >> for the GTK2 toolkit right from the beginning.) Maybe that the bug >> occured for an Emacs revision I didn't build. And for GTK2 it even >> doesn't happen at all yet - at least for me. >> >> By the way - for curiousity I reverted to revision 104583 i.e. the >> last one for your last GTK3-related changes. For this revision the >> shrinking error does not occur. > > Hi. > > This is not surprising, it is a timing issue. > Actually its not a timing issue. KDE uses min_width/height to calculate=20 geometry constraints, i.e. a window shall obey width =3D ((width - min_width)/width_inc) * width_inc + min_width Ditto for height. This is OK if min_width is a multiple of width_inc. That may be seen as a bug in it self as base_size is what should be used,= and=20 that is what Gtk3 (and 2) uses. But Gtk3 sets min size by itself now, ignoring any min size set by Emacs = (a=20 gigantic bug IMHO). But Gtk3 doesn't bother to adjust min width so it is= a=20 multiple of width_inc (ditto for height). This is another bug. And in the style that Gtk+/Gnome is developed in ("we know best"), Gtk+=20 actually resizes the frame after the window manager has resized it (bug #= 3).=20 That is so Gtk+ can force its "we know best" view of what the size the fr= ame=20 shall have according to Gtk+, never mind that Emacs, the window manager a= nd=20 the user has another view. So in my case we set width to 680 pixel. But KDE calculates with the for= mula=20 above that the width should be 378 pixels so it, being the window manager= ,=20 resizes the frame to that. Gtk3 then sees that the frame has been resize= d,=20 and rather than just accepting the size like any well behaved toolkit sho= uld=20 do, it resizes again, now to 672 (width_inc is 8 here). And KDE then res= izes=20 to 370. And Gtk+ to 664. And KDE to 662. And so on. With luck they fi= nd a=20 common denominator, or otherwise the frame gets resized until it hits the= min=20 width. If you move/hide the scroll bar, or menu bar or tool bar, Gtk+ sets a new= min=20 width/height, and the dance is on again. This is so ugly, so maybe Emacs should remove Gtk3 support for this relea= se? There doesn't seem to be any sane way around this, except rewriting Gtk3+= =20 widgets to not set any min size other that the one the application has se= t. Jan D. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 14:51:23 2011 Received: (at 8919-done) by debbugs.gnu.org; 26 Jun 2011 18:51:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QauQV-0005N3-7b for submit@debbugs.gnu.org; Sun, 26 Jun 2011 14:51:23 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QauQS-0005Mq-68 for 8919-done@debbugs.gnu.org; Sun, 26 Jun 2011 14:51:21 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 40938E9CC0 for <8919-done@debbugs.gnu.org>; Sun, 26 Jun 2011 20:51:14 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmdZAPJ+B05V4S1kPGdsb2JhbABSiRGeNQsBAQEBNzKIdr9phjAElnGLLw X-IronPort-AV: E=Sophos;i="4.65,428,1304287200"; d="scan'208";a="203059947" Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 26 Jun 2011 20:51:13 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 3F30A7FA05A; Sun, 26 Jun 2011 20:51:13 +0200 (CEST) Message-ID: <4E077FA1.1020906@swipnet.se> Date: Sun, 26 Jun 2011 20:51:13 +0200 From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dirk Ullrich Subject: Re: bug#8919: 24.0.50; Ever-changing frame size for GTK3 toolkit on a KDE4 desktop References: <4E037C6A.9010807@swipnet.se> <4E046DBD.1040609@swipnet.se> <4E0751F0.7080004@swipnet.se> In-Reply-To: <4E0751F0.7080004@swipnet.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8919-done Cc: 8919-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) Hello. I've checked in a really ugly solution (overriding X11 functions). This = only=20 applies to Gtk3. Maybe we should do like Firefox and only use Gtk for th= e=20 style specific drawing, thus bypassing all the strange behaviour. No tim= e for=20 that before feature freeze, though. Jan D. Jan Dj=E4rv skrev 2011-06-26 17.36: > > > Jan Dj=E4rv skrev 2011-06-24 12.58: >> >> >> Dirk Ullrich skrev 2011-06-24 11.47: >> >>> I must confess that this the first time that I suffer from this >>> shrinking of Emacs on KDE. (I use the Emacs' development version buil= t >>> for the GTK2 toolkit right from the beginning.) Maybe that the bug >>> occured for an Emacs revision I didn't build. And for GTK2 it even >>> doesn't happen at all yet - at least for me. >>> >>> By the way - for curiousity I reverted to revision 104583 i.e. the >>> last one for your last GTK3-related changes. For this revision the >>> shrinking error does not occur. >> >> Hi. >> >> This is not surprising, it is a timing issue. >> > > Actually its not a timing issue. KDE uses min_width/height to calculate > geometry constraints, i.e. a window shall obey > > width =3D ((width - min_width)/width_inc) * width_inc + min_width > > Ditto for height. This is OK if min_width is a multiple of width_inc. > > That may be seen as a bug in it self as base_size is what should be use= d, and > that is what Gtk3 (and 2) uses. > > But Gtk3 sets min size by itself now, ignoring any min size set by Emac= s (a > gigantic bug IMHO). But Gtk3 doesn't bother to adjust min width so it i= s a > multiple of width_inc (ditto for height). This is another bug. > > And in the style that Gtk+/Gnome is developed in ("we know best"), Gtk+ > actually resizes the frame after the window manager has resized it (bug= #3). > That is so Gtk+ can force its "we know best" view of what the size the = frame > shall have according to Gtk+, never mind that Emacs, the window manager= and > the user has another view. > > So in my case we set width to 680 pixel. But KDE calculates with the fo= rmula > above that the width should be 378 pixels so it, being the window manag= er, > resizes the frame to that. Gtk3 then sees that the frame has been resiz= ed, and > rather than just accepting the size like any well behaved toolkit shoul= d do, > it resizes again, now to 672 (width_inc is 8 here). And KDE then resize= s to > 370. And Gtk+ to 664. And KDE to 662. And so on. With luck they find a = common > denominator, or otherwise the frame gets resized until it hits the min = width. > > If you move/hide the scroll bar, or menu bar or tool bar, Gtk+ sets a n= ew min > width/height, and the dance is on again. > > > This is so ugly, so maybe Emacs should remove Gtk3 support for this rel= ease? > > There doesn't seem to be any sane way around this, except rewriting Gtk= 3+ > widgets to not set any min size other that the one the application has = set. > > Jan D. From unknown Wed Aug 20 00:03:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 25 Jul 2011 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator