From: "Dr. Werner Fink" <werner@suse.de>
To: bug-gnu-emacs@gnu.org
Cc: Jochen Luebbers <jole@buerotiger.de>
Subject: GTK/GDK Usage or API broken (Was: Several problems in KDE/KWin)
Date: Tue, 18 Dec 2007 17:37:26 +0100 [thread overview]
Message-ID: <20071218163726.GA10311@boole.suse.de> (raw)
In-Reply-To: <hdabogmj2z.fsf@fantasymail.de>
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
next prev parent reply other threads:[~2007-12-18 16:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4880.1197392193.18990.bug-gnu-emacs@gnu.org>
2007-12-12 8:08 ` gtk-based Emacs 22 as distributed with openSUSE 10.3 and kde Jochen Luebbers
2007-12-18 16:37 ` Dr. Werner Fink [this message]
2007-12-05 16:54 Several problems in KDE/KWin Werner Fink
2007-12-06 14:57 ` Dr. Werner Fink
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071218163726.GA10311@boole.suse.de \
--to=werner@suse.de \
--cc=bug-gnu-emacs@gnu.org \
--cc=jole@buerotiger.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.