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: Thu, 30 Jan 2020 21:15:42 +0300 Message-ID: References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <32fb4915-be55-f753-5f6c-423a09030fd6@gmx.at> <8b252ea4-5902-d21e-a0d7-cdb3ddbb4e08@yandex.ru> <39d47d8c.4bad.16fcd672191.Coremail.tumashu@163.com> <729d39eb-d0b4-2cc5-cac3-e129a3effa87@yandex.ru> <06c6b6fb-ce6f-456b-6a22-c5a26a0ab297@gmx.at> <50912835-37d2-f15b-8fd1-b6619893d1ce@yandex.ru> <4a424bf3-ee08-b114-73ef-287bde14003b@gmx.at> <5dd35cdd-2914-0b91-a6fd-e8764feecfb0@gmx.at> <9839e101-a25d-8875-4eee-2e6772249afe@yandex.ru> <728856fd-dab1-eade-54f5-6ba2c299373a@gmx.at> <6c775e15-1113-8406-5583-97c259305a7d@yandex.ru> <0fe2d245-9ac1-3528-e710-38462441f8aa@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="70455"; 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 Thu Jan 30 19:16:44 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 1ixEMt-000IGM-U1 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Jan 2020 19:16:43 +0100 Original-Received: from localhost ([::1]:37418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixEMs-0004cn-W3 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Jan 2020 13:16:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38396) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixELz-00046M-47 for emacs-devel@gnu.org; Thu, 30 Jan 2020 13:15:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixELy-0000aF-3n for emacs-devel@gnu.org; Thu, 30 Jan 2020 13:15:47 -0500 Original-Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:41304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixELx-0000YM-Sk for emacs-devel@gnu.org; Thu, 30 Jan 2020 13:15:46 -0500 Original-Received: by mail-lj1-x22f.google.com with SMTP id h23so4390809ljc.8 for ; Thu, 30 Jan 2020 10:15:45 -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=q5LT91UAk344VixGqVxOrkZqt9g4U5WaNX8Jw2jADM0=; b=sprsjiwMkVQFiIk7emg5rcMJSXNrx0p97l7cJFzVY+ynb+yvs9ow5x5zMTzVfusfPy RVdZe4zz051xx+RoQPz2gdfyqarIgOpYiJG3JCRsb6mUTxTBcQlpCfF0ZUID43ZcDrvB yxGAUcY3LI47czmyiD0NgZJrSfRVRRxR9OCpI0Tl2V3w7Q6YHXgV7C5EOfdmFP3omS0/ Jth/ktymcdqgrKx7uPBh3dUbXS8GyHEjAPXAj40qezzk38riGld4ISVQ0Qc6nzkl0vv7 PCsndy0TlgWK/IoEbGx+8cVr7K1ZlwkLZGRqK2t7BthZ5C1AMzI8fkBED8osH3BRw3PH Bn/w== 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=q5LT91UAk344VixGqVxOrkZqt9g4U5WaNX8Jw2jADM0=; b=rHOHfsEhjIgBVHoBaJjXoryyJRGejigVonU848BXylxvbPvvxfhiW3iHH4cD646lbe yV6/6UoOPlyEWERXOt0RO6hNoW+YKOI9KRwKqbHBb8LxRGRE8BntsO9kEFsFNtwOqa6k nN2/1abEyvvlqwrxyzdPTzGmi24zplMlECPckqbNL7YClQt2hStbRTwG8wdAFw5AEKxk BXpTr2FrbnASu3Q9ornqVr9tFoskZaVfWyUMnIOZ5ZYpgnitCWWDqP1IeXmr2aqaV2Ad 1nDi4tcMXAM3bhPcEKyoKjCbVRy0YrHB5DXXv4fR4IP+N/D6lM69Xj2B9TTqd5qUn7AA dfjQ== X-Gm-Message-State: APjAAAV7nHu7QKzntTKIutfseUlqf0jU6GRZ3qgIyze0wh39JQauKqN1 YvvUYzYAu6591iYFIlu/FwbfPw7ICPI= X-Google-Smtp-Source: APXvYqxqT1rBFK4/JNQiLPIlgxMCVomvnL8PbDic+NiZObY4fTqc0PR2Vp3u4XxtrPxLuW85OTgTEA== X-Received: by 2002:a2e:9e16:: with SMTP id e22mr3845838ljk.220.1580408144054; Thu, 30 Jan 2020 10:15:44 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id g15sm3399264ljl.10.2020.01.30.10.15.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jan 2020 10:15:43 -0800 (PST) In-Reply-To: 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::22f 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:244777 Archived-At: On 30.01.2020 20:21, martin rudalics wrote: > The new patch attached now uses different API functions for resizing + > moving frames.  The function is called 'x-set-frame-size-and-position' > and works only under X and GTK.  It makes mouse-dragging X frames about > as smooth as the old GTK code did here (tested with Lucid, Motif and > without toolkit support).  I doubt that it also solves the GTK child > frame resize issue but you could nevertheless give it a try. I've tried both patches now. mouse.el.diff seems to solve the undecorated frame resizing problem. No drift anymore, both with and without frame-resize-pixelwise. So brief testing showed that it's okay now. mouse+xfns.diff, on the other hand, is more broken. First of all, it didn't help resizing child frames (not discernible difference). Second, it's very broken with desktop scaling (my 200% makes dragging the frame behave very wildly). Without scaling it almost works as well as the other patch, but not quite. For instance, when mouse dragging by the bottom-right corner, at first the corner jumps a little away from the cursor in the top-left direction, and then follows it, more or less correctly, from that distance.