From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dr. Werner Fink" Newsgroups: gmane.emacs.bugs Subject: GTK/GDK Usage or API broken (Was: Several problems in KDE/KWin) Date: Tue, 18 Dec 2007 17:37:26 +0100 Message-ID: <20071218163726.GA10311@boole.suse.de> References: <20071205165421.2869B2F2ED2@magellan.suse.de> <20071206145757.GA27051@boole.suse.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: ger.gmane.org 1197995872 17426 80.91.229.12 (18 Dec 2007 16:37:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 16:37:52 +0000 (UTC) Cc: Jochen Luebbers To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 18 17:38:03 2007 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 1J4fSB-0007ky-86 for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 17:37:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4fRr-0006oC-UI for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 11:37:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4fRn-0006o7-Ax for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:37:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4fRk-0006nv-Qq for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:37:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4fRk-0006ns-MD for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:37:32 -0500 Original-Received: from mx2.suse.de ([195.135.220.15]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J4fRk-0006aO-7B for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:37:32 -0500 Original-Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id E24682E0F3; Tue, 18 Dec 2007 17:37:28 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:17188 Archived-At: On Thu, Dec 06, 2007 at 03:57:57PM +0100, Dr. Werner Fink wrote: > On Wed, Dec 05, 2007 at 05:54:20PM +0100, Dr. Werner Fink wrote: > > Two problems have beem seen: > > > > Emacs does not keep the "iconic" information in KDE/KWin > > Emacs does not un-maximize in KDE/KWin > > > > When starting emacs in kde in the background iconified like: > > emacs --iconic & > > it shows only in the menu-bar of kde but not in the screen (by intent). Now, if > > I save the desktop configuration, quit kde and start it again, emacs is startet > > - what is expected - but not iconified - what is not expected. > > > > After maximizing an emacs window, it is not possible to un-maximise it. > > It may depend on font size and desktop geometry. I have these in > > Xresources: > > Emacs.font: 10x20 > > Emacs.geometry: 80x38 > > Size of desktop is 1400x1050. > > The symptom is that after maximizing, the "maximize/un-maximize" button stays > > in the "maximize" state (one square), intead of going to the "un-maximize" > > state (two squares). > > Just found out that the second problem depends on the max resize > request send from KWin. Im my test case this is 1680x975 but > emacs with gtk response with 1672x962 which seems to leave the > KWin in the state `not maximized' which leads on the next press > on the min/max button to a further maximize. > > How this problem can be solved? This problem does not happen > without gtk but X standard toolkit. The later seems to add > the remaining pixel to the internal border width/height. As no one is interested to fix this bug I've added a workaround to switch to the Athena/Xaw3d toolkit instead of using GTK which is done by this scriplet: #!/bin/bash # Avoid trouble with maximize/minimize within KDE (bug #345669) # -> under KWin emacs does not maximize in the correct way if # GTK/GDK is used as toolkit. After click on the maximize # button emacs shrinks to fit to the current font which # destroys the maximize state in KWin. # Avoid trouble with "iconic" state information (bug #342385) # -> under KWin emacs with GTK/GDK toolkit does not hold its # "iconic" state if a desktop state is saved before logout # and restored after login. toolkit=gtk KDE_FULL_SESSION=$(xprop -root KDE_FULL_SESSION 2>/dev/null) case "$KDE_FULL_SESSION" in *true*) toolkit=x11 esac exec -a ${0} ${0}-${toolkit} the bugs can be found at http://bugzilla.novell.com Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr