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#13469: 24.2; emacs has a tiny frame, when I embed it in a kmail text field via xembed (--parent-id %w) Date: Wed, 20 Mar 2013 21:26:56 +0200 Message-ID: <83fvzpzxbz.fsf@gnu.org> References: <874nigbs8c.wl%arne_bab@web.de> <5148405C.2000808@kit.edu> <837gl220on.fsf@gnu.org> <51497A90.7070901@kit.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1363807735 28757 80.91.229.3 (20 Mar 2013 19:28:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 19:28:55 +0000 (UTC) Cc: 13469@debbugs.gnu.org, arne_bab@web.de To: arne.babenhauserheide@kit.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 20:29:19 2013 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 1UIOhJ-0006GL-Mu for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 20:29:17 +0100 Original-Received: from localhost ([::1]:40228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOgw-0006fn-FR for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 15:28:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOgP-0005fD-UC for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 15:28:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIOgK-0003qn-VT for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 15:28:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIOgK-0003qb-Rm for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 15:28:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UIOi2-0001pG-QC for bug-gnu-emacs@gnu.org; Wed, 20 Mar 2013 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Mar 2013 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13469 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13469-submit@debbugs.gnu.org id=B13469.13638077626939 (code B ref 13469); Wed, 20 Mar 2013 19:30:02 +0000 Original-Received: (at 13469) by debbugs.gnu.org; 20 Mar 2013 19:29:22 +0000 Original-Received: from localhost ([127.0.0.1]:38043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIOhO-0001ns-G6 for submit@debbugs.gnu.org; Wed, 20 Mar 2013 15:29:22 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49739) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIOhM-0001nj-NQ for 13469@debbugs.gnu.org; Wed, 20 Mar 2013 15:29:21 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MJZ00E004KC9900@a-mtaout20.012.net.il> for 13469@debbugs.gnu.org; Wed, 20 Mar 2013 21:26:42 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJZ00DBI4OIY880@a-mtaout20.012.net.il>; Wed, 20 Mar 2013 21:26:42 +0200 (IST) In-reply-to: <51497A90.7070901@kit.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:72751 Archived-At: [Please keep the bug address on the CC list.] > Date: Wed, 20 Mar 2013 10:00:00 +0100 > From: "Arne Babenhauserheide (IMK)" > > > Is there any evidence that this is an Emacs bug, and not a bug in > > qxembed-emacs.py? Can you reproduce something similar with just > > Emacs? > > The cue for that is that the same happens with kmail, which I did not > write, and that qxembed-emacs.py is just a 47 lines script, which can be > reduced to the following by removing emacs version checks and > commandline argument parsing: > > from PyQt4.QtGui import QX11EmbedContainer, QApplication > from PyQt4.QtCore import QProcess, SIGNAL, SLOT > from sys import argv > > app = QApplication(argv) > > container = QX11EmbedContainer() > container.resize(670, 630) > container.show() > > process = QProcess(container) > process.start("emacs", ["--parent-id", str(container.winId())]) > > container.connect(container, SIGNAL("clientClosed()"), app.quit) > > container.connect(container, > SIGNAL("error(QX11EmbedContainer::Error)"), app.quit) > > status = app.exec_() > process.close() > > > There might also be a bug in Qt, which triggers this behavior. > > Especially strange is that it works with emacs -Q --basic-display. The --basic-display disables menu bar and tool bar, and also disables blinking cursor. Maybe the absent menu and tool bar somehow affect this, when you resize the qxembed-window? I suggest to put a breakpoint in change_frame_size, and see who calls it with such a small frame size.