From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#23144: shrinking windows with gtk 3.20 Date: Sat, 02 Apr 2016 18:06:16 +0200 Message-ID: <56FFEDF8.5030704@gmx.at> References: <56FF0C5B.1020201@cs.ucla.edu> <83r3eosdde.fsf@gnu.org> <8360w0rp10.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1459613241 26316 80.91.229.3 (2 Apr 2016 16:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 16:07:21 +0000 (UTC) Cc: 23144@debbugs.gnu.org, eggert@cs.ucla.edu To: Eli Zaretskii , Matthias Clasen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 18:07:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amO4r-0001cJ-QK for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 18:07:09 +0200 Original-Received: from localhost ([::1]:50175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amO4r-0000k8-27 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 12:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amO4n-0000jW-Gf for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 12:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amO4k-0007G1-AR for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 12:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amO4k-0007Fh-6n for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 12:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amO4k-0002fJ-2V for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23144-submit@debbugs.gnu.org id=B23144.145961319710215 (code B ref 23144); Sat, 02 Apr 2016 16:07:02 +0000 Original-Received: (at 23144) by debbugs.gnu.org; 2 Apr 2016 16:06:37 +0000 Original-Received: from localhost ([127.0.0.1]:49025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amO4K-0002eg-VI for submit@debbugs.gnu.org; Sat, 02 Apr 2016 12:06:37 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:61440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amO4J-0002eU-IA for 23144@debbugs.gnu.org; Sat, 02 Apr 2016 12:06:35 -0400 Original-Received: from [192.168.1.101] ([212.95.7.71]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LabZr-1a054e3Ipb-00mIEa; Sat, 02 Apr 2016 18:06:19 +0200 In-Reply-To: <8360w0rp10.fsf@gnu.org> X-Provags-ID: V03:K0:c7T0UgoWwKYsKNkpW6865d/DAIrBuHGYmw3sBt5fMPyqeVMEtc2 PEuEfnNU44eF9QYsmLL6OgfKm3I4rCkCzGNNvuLeh+/3hNV01U8Z8167tL08w2plr/vWV7u d+gsiFfHUocFHYngSvu6qosbczGPdAK8OtLJcgasqp2aj9EOvYm/iTujiHnfq8Qlw7t/jFF AYBUrGjgLUurj0JueEJ7A== X-UI-Out-Filterresults: notjunk:1;V01:K0:RTJ8UK4MX0g=:kBy6Y2t7XyduH/ns8BNkoO 6saF2T+l4ijt7Ir5fMrkM2JBOvCnVUeNiAcwICC8ZfjbRKyWAat+mHwzd7hgcbYV92+eJ7XWt 7WpD4PWolsFpzxeOZg2QSsP7zMuUJRKkuCBR/tU5b1zCt4MRKfcMuBHJWabjUOxsPsOdqNyak MxwHUqCmHrGKhYgfM7C+GugmAkNMC30YTwwP2ajKo6FWWeQBITUIfHO7qLhRUNvzFF2mn+Sks dXhyd+wxYBzwYIDw4cjweuOoRoQ+yWWe1LS5UC88SxZfnJ9atsUKQdeiNv2qs48FsfjTcUiEp qxikBuRrVLjAF7O2N4auJcj0zsx9G8LecsyCLSYXTVAPpx52KvLVhf67av2sT9SGskIuDLDHA g3fXhYiddfWxW9chtqpil91oBbEa2l1Qn/SFUq3q31U0df1wrtmCsZsGMRMPHQ6tIBU5vBBWs HQ/JPyQzK3aDSsS6hM9hJCt64qtyIFWFJEKTZ5htMsR07uAn766Sfqdm/y0YT2GptYS5i5JYj fuyVkzADAq9YtMyzyD2ZvW1SmorifbPnwyefshFEb42KDWzbR9QBKvBv3McXaQoGc1jYMR3Iu 3DB9x4FBSIVOfL/tfGIwZa7xNui5B4Ynfov/wnFhgRz2i10Y2QjfAKvrbWO+FY5gNbmymqtEt Zmj5IKxaLiHq50oIYATzWzp+UF1vVg5Yd6OLaCg0nEV4KJwKGBD3wxaU+enFmyEaPLwajkFpp JqXpc7iQ76cMoaVaRX9WCLTCeDf+q9EEIZcJ2DEKMkZsrfU4cSmjsOegXN7EDp/a1zj/NXDw 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115874 Archived-At: > We would prefer to not include the change in Emacs 25.1 (that will be > released from the emacs-25 branch), and instead have some workaround > there that will be activated by the end-users, if and when they see > problems related to this. Can you propose such a workaround? > Something like a call to xg_frame_resized with some reasonable > dimensions, for example? In emacs-25 either use something like #if !GTK_CHECK_VERSION (3, 20, 0)) xg_frame_resized (f, -1, -1); #endif or, as Matthias proposed, in xg_frame_resized write if (pixelwidth == -1 && pixelheight == -1) { if (FRAME_GTK_WIDGET (f) && gtk_widget_get_mapped (FRAME_GTK_WIDGET (f))) { gdk_window_get_geometry (gtk_widget_get_window (FRAME_GTK_WIDGET (f)), 0, 0, &pixelwidth, &pixelheight); if (pixelwidth <= 1 || pixelheight <= 1) return; } else return; } martin