From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Wed, 22 Jan 2020 01:26:14 +0300 Message-ID: <8b252ea4-5902-d21e-a0d7-cdb3ddbb4e08@yandex.ru> References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <9157f42c-ae6b-9537-4b44-08672cf60884@gmx.at> <4fc23d82-7a6a-6011-698a-b4f9d7eb6a53@yandex.ru> <5597826b-98b3-179d-ba9a-2deb314cba44@gmx.at> <2d112f1b-ea8e-ac49-1dac-9218db32f6fc@yandex.ru> <44dfe3ee-5c08-9a60-a642-8411c8e22921@yandex.ru> <35329f93-d7a9-e845-ddb4-9c4edec5fb43@yandex.ru> <53c7798d-3022-d4bd-af56-ea4a5181a887@gmx.at> <15405719-d58d-44db-f1df-ad3bb272b2fc@yandex.ru> <437eae9b-ccc1-3875-86b7-1af0e61b6e15@gmx.at> <710da57c-28dc-fab7-81af-0318a9389d6a@yandex.ru> <0e41cd9e-8be3-f67a-6958-7bad38ee1266@gmx.at> <6c86c25b-22df-2b69-34fe-539605f624ba@yandex.ru> <7dd69fe5-4ef4-782c-2fba-031d475f6406@yandex.ru> <32fb4915-be55-f753-5f6c-423a09030fd6@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: "emacs-devel@gnu.org" To: martin rudalics , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 21 23:28:33 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iu20e-0003Q7-PM for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Jan 2020 23:28:32 +0100 Original-Received: from localhost ([::1]:33602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu20d-0002Z6-Qg for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Jan 2020 17:28:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iu1yW-00007Y-S3 for emacs-devel@gnu.org; Tue, 21 Jan 2020 17:26:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iu1yV-0002ah-Ph for emacs-devel@gnu.org; Tue, 21 Jan 2020 17:26:20 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:37307) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iu1yV-0002Yd-IF for emacs-devel@gnu.org; Tue, 21 Jan 2020 17:26:19 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id o13so4555489ljg.4 for ; Tue, 21 Jan 2020 14:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P+sKUPHOxsQPIpXt5YtAQnCAeVjbl07C0QbhY6SFF8Q=; b=HcwZ4b8UcopuhznpANWPcCc33uT3jf9DFn+kgp3b5Bu2DAD/Gjsp7kppnqiewUfCq5 K8sHdPO2mK6T8pbaUWIMwZqnXAfsHJ3jBGeweohuK8xMNGJrAp+3tdmmuTrLUuql/Qjz 2uKbuya4nav2hxIap8Bq5F40mkfmKaBXwgRreR/rlyXQQOn01Kg+wnqWAAp3+SRTZI4s irbVhpqIPDMmz8OwU0Bj/FwI87Siy3CmbgGd2Qi7ADVUA1iAtQeMBOCKUdxoEnLRwEX4 5/OapiVC1naKktuJslsWBAZlIZFsOuBwQZGI/OiOJGpDBAo49rUXC6LO2cgV2VWEdRjK lJVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P+sKUPHOxsQPIpXt5YtAQnCAeVjbl07C0QbhY6SFF8Q=; b=lLbu2nBy5iYh2+MjaBMCajjAtqij6MwEJgU4bhggdGVBemqMR7Dh+hYvweLW75YP/P h3/JxJN9oJJOatB4x1JgOSf1FM1LqUXwprr39ATqymMKV582d7VQR1+CuGdVwizOf0Su MXaMxDxoPYQbj7CGx5tAn74rt9IDdVbrFuNIzdDaEax9psw0iM2+PALgZVUCB/k+4HOK pRVF766VFL5k92Vdy7iFa6FW9+eQjX3xPleECN4pOKau/RwYsw6LIhFaJxmoF5vkgWrx WoR4NvlA7+yK961/B3JH4eXFgyK0HVVffwtuyj/ZY/DeZh/qWE+3xnFH1NLQk+4MM3dO XRHA== X-Gm-Message-State: APjAAAXcAju8Xo3jQUOKhQD9cDvG/YNQucx/WFu26mD7Hx/8Caij1isX WvmsWnM6eiKj2uINzYDiDys/9+nA0l0= X-Google-Smtp-Source: APXvYqwpnFsBmZ/d+tx1coynF6ReidrcCLnLSIWwv3wV+X/vdZ30uyjKL0NVbbCqdMI6BVzftRbhaQ== X-Received: by 2002:a2e:7311:: with SMTP id o17mr18270316ljc.197.1579645576359; Tue, 21 Jan 2020 14:26:16 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id n3sm19778782lfk.61.2020.01.21.14.26.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jan 2020 14:26:14 -0800 (PST) In-Reply-To: <32fb4915-be55-f753-5f6c-423a09030fd6@gmx.at> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244479 Archived-At: On 21.01.2020 19:12, martin rudalics wrote: > > Yes, that works both with Lucid and Motif. BTW, dragging bottom and > right borders is fast and smooth, but dragging top-left is very choppy. > > Because the frame has to resize _and_ move.  GTK has an internal > function that moves and resizes a window in one go but I haven't seen an > external interface to it. But I can drag it smoothly (by the mode-line), and I can resize it smoothly. It kind of weird that drag+resize is more than 2x as slow. Anyway, that's not the current issue. > > Unfortunately, I'm getting reports that the Lucid build is much slower > > than GTK at least for some others: > > I can't comment on that.  I only have non-optimized Lucid builds here > and they are much too slow to do anything with child frames at all. Does building with '-Og' help? It's really fast here, faster than GTK by an order of magnitude (or two). > Next thing to try: Before the > >   gtk_window_get_size (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), >                &gwidth, &gheight); > > lines in xg_frame_set_char_size insert the two lines > >   if (!gtk_window_get_resizable (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)))) >     gtk_window_set_resizable (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), > TRUE); > > put a breakpoint on the second one and tell me whether you get a hit. > Just to make sure ... Still no luck (hits line 960, but not 961).