unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Several problems in KDE/KWin
@ 2007-12-05 16:54 Werner Fink
  2007-12-06 14:57 ` Dr. Werner Fink
  0 siblings, 1 reply; 4+ messages in thread
From: Werner Fink @ 2007-12-05 16:54 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: dieter.jurzitza, llunak, mszeredi

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).


In GNU Emacs 22.1.1 (x86_64-suse-linux-gnu, GTK+ Version 2.12.0)
 of 2007-11-10 on reger
Windowing system distributor `The X.Org Foundation', version 11.0.70199902
configured using `configure  '--with-gcc' '--with-pop' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--with-leim' '--with-xim' '--with-system-malloc' '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--with-x' '--with-sound' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=gtk' '--x-includes=/usr/include' '--x-libraries=/usr/lib64:/usr/share/X11' '--build=x86_64-suse-linux-gnu' 'build_alias=x86_64-suse-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -pipe -fno-strict-aliasing 	 -D_GNU_SOURCE 	 -Wno-pointer-sign 	 -Wno-unused-variable 	 -Wno-unused-label  -DSYSTEM_PURESIZE_EXTRA=55000 	 -DSITELOAD_PUR
 ESIZE_EXTRA=10000 ' 'LDFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: de_DE.ISO-8859-1
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: POSIX
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading /usr/share/emacs/22.1/leim/leim-list.el (source)...done
Loading /usr/share/emacs/site-lisp/skk/leim-list.el (source)...done
Loading /usr/share/emacs/site-lisp/egg/leim-list.el (source)...done
uim.el: starting uim-el-helper-agent... done
uim.el: starting uim-el-agent... done
Loading paren...done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
call-interactively: End of buffer [11 times]




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Several problems in KDE/KWin
  2007-12-05 16:54 Several problems in KDE/KWin Werner Fink
@ 2007-12-06 14:57 ` Dr. Werner Fink
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. Werner Fink @ 2007-12-06 14:57 UTC (permalink / raw)
  To: bug-gnu-emacs

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.


        Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gtk-based Emacs 22 as distributed with openSUSE 10.3 and kde
       [not found] <mailman.4880.1197392193.18990.bug-gnu-emacs@gnu.org>
@ 2007-12-12  8:08 ` Jochen Luebbers
  2007-12-18 16:37   ` GTK/GDK Usage or API broken (Was: Several problems in KDE/KWin) Dr. Werner Fink
  0 siblings, 1 reply; 4+ messages in thread
From: Jochen Luebbers @ 2007-12-12  8:08 UTC (permalink / raw)
  To: gnu-emacs-bug

Jurzitza, Dieter <DJurzitza@harmanbecker.com> wrote:
> Dear listmembers,
> when running a recent gnu-emacs on SUSE (i. e. 22.X) it refuses to
> keep the "iconic" attribute.
>
> Verification:
>
> run emacs --iconic
>
> emacs starts iconified in the kde-taskbar. Now, save your desktop
> configuration, log out and log in again. Emacs will be started - what
> is expected - but pop up full screen - what is not expected. 

What does the step "save your desktop configuration" mean exactly?
Are you running a KDE or GNOME desktop environment?
AFAIK saves KDE the states of opened/iconic windows and tells via kwm
the application to be opened/iconic when it is started the next time.

In your case emacs would start iconic, but than the KDE window manager
would tell emacs to show up.

Could that happen in your setting?

 
> This did not happen with the athena(?)widgets based emacsen 21.X before.
Did you try this in your current environment or within an older SuSE?


HTH
    Jochen.
-- 
  "Who desire to give up freedom in order to gain security
   will loose both in the end."                   (Benjamin Franklin)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* GTK/GDK Usage or API broken (Was: Several problems in KDE/KWin)
  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
  0 siblings, 0 replies; 4+ messages in thread
From: Dr. Werner Fink @ 2007-12-18 16:37 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: Jochen Luebbers

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-18 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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   ` GTK/GDK Usage or API broken (Was: Several problems in KDE/KWin) Dr. Werner Fink
2007-12-05 16:54 Several problems in KDE/KWin Werner Fink
2007-12-06 14:57 ` Dr. Werner Fink

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).