From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Toolbar redraw causes unwanted selection Date: Thu, 14 Dec 2006 12:47:43 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: dough.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1166118579 8422 80.91.229.10 (14 Dec 2006 17:49:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 17:49:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 18:49:39 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Guui7-0003qn-FT for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 18:49:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Guui7-0005eJ-1W for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 12:49:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuugM-0004Da-5T for emacs-devel@gnu.org; Thu, 14 Dec 2006 12:47:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuugL-0004CV-B6 for emacs-devel@gnu.org; Thu, 14 Dec 2006 12:47:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuugL-0004CR-59 for emacs-devel@gnu.org; Thu, 14 Dec 2006 12:47:45 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GuugL-0006vo-0w for emacs-devel@gnu.org; Thu, 14 Dec 2006 12:47:45 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.52) id 1GuugJ-0005js-F0; Thu, 14 Dec 2006 12:47:43 -0500 Original-To: JD Smith In-reply-to: (message from JD Smith on Wed, 13 Dec 2006 15:44:02 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63729 Archived-At: - Open two files in two windows split vertically in a single frame. - In the bottom window, M-x gdb [Ret] - Resize the frame horizontally so that the GDB toolbar icons just fit in a single row. - Switch to the top window in the frame by clicking on it with the mouse, without dragging. Since the normal editing toolbar now occupies *two* rows, the text is shifted down as the toolbar is redrawn, and several lines of text are selected, even though no drag was performed. This is clearly a bug. The question is, what is the right approach for fixing it. We could fix it at the narrow level by making the mouse tracking code note that the mouse didn't actually move, and not treat this as a drag. But maybe the right fix is not to change the height of the toolbar. Maybe once the tool bar gets bigger it should keep its new size until the user does something to let it shrink again.