From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#1348: set-frame-width and set-frame-position seem buggy on at least MSWindows Date: Fri, 05 Dec 2008 08:20:04 +0200 Message-ID: References: "4922BD1F.2080604@gmx.at" <492DBE0C.1030707@gmx.de> <492EA390.1020206@gmx.at> <492EDCC9.7070806@gmx.de> <492EF976.1070108@gmx.at> <49319B2E.20006@gmx.de> <49325AAA.5090606@gmx.at> <1228089264.493327b06fd4e@webmail.freedom2surf.net> <49339200.7080603@gmx.at> <1228119737.49339eb964cc6@webmail.freedom2surf.net> <4933AFA5.5020109@gmx.at> <4934D1AF.50905@gmx.de> <49355A23.8030001@gmx.at> <4935CE37.4010206@gmx.de> <49365CB8.5050800@gmx.at> <4936C0E6.9050200@gmx.de> <49381A5C.2030903@gmx.at> <493866B8.6050408@gmx.de> Reply-To: Eli Zaretskii , 1348@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1228458774 1241 80.91.229.12 (5 Dec 2008 06:32:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 06:32:54 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, jasonr@f2s.com To: grischka , 1348@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 05 07:33:57 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L8UGD-0006Dl-Jg for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 07:33:57 +0100 Original-Received: from localhost ([127.0.0.1]:59324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8UF2-0006T2-Rg for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 01:32:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8UCj-00061n-Uq for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 01:30:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8UCh-00060a-Jt for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 01:30:20 -0500 Original-Received: from [199.232.76.173] (port=37692 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8UCg-00060Q-Te for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 01:30:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38182) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8UCg-0002DM-En for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 01:30:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB56UDTI023388; Thu, 4 Dec 2008 22:30:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB56U4XV022836; Thu, 4 Dec 2008 22:30:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Dec 2008 06:30:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1348 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1348-submit@emacsbugs.donarmstrong.com id=B1348.122845801021042 (code B ref 1348); Fri, 05 Dec 2008 06:30:04 +0000 Original-Received: (at 1348) by emacsbugs.donarmstrong.com; 5 Dec 2008 06:20:10 +0000 Original-Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB56K6Hh020316 for <1348@emacsbugs.donarmstrong.com>; Thu, 4 Dec 2008 22:20:08 -0800 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KBE00M0042GF600@i-mtaout1.012.net.il> for 1348@emacsbugs.donarmstrong.com; Fri, 05 Dec 2008 08:22:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.111.178]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KBE00MV04D0ZJA0@i-mtaout1.012.net.il>; Fri, 05 Dec 2008 08:22:13 +0200 (IST) In-reply-to: <493866B8.6050408@gmx.de> X-012-Sender: halo1@inter.net.il X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Dec 2008 01:30:20 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22969 Archived-At: > Date: Fri, 05 Dec 2008 00:24:40 +0100 > From: grischka > Cc: 1348@emacsbugs.donarmstrong.com, jasonr@f2s.com > > if (XINT (lines) != FRAME_LINES (f)) > x_set_window_size (f, 1, FRAME_COLS (f), XINT (lines)); > > Basically if the window has 20 lines on enter-freeze, then our > thing wouldn't even start, because between "sleep-for" and > "set-frame-height" there is nothing to read the WM_SIZE messages > from the mouse-dragging. > > Works for me if I disable this line: > // if (XINT (lines) ... > > It is a natural problem which happens only too often with > such "micro-optimizations". This is not a "micro-optimization". Emacs deliberately avoids unnecessary calls to display routines, because frequent redisplay that doesn't really change anything causes flickering that is quite annoying. Therefore, your "solution" is wrong.