Re: [Geany-devel] SM Client_ + Legacy_

2010-05-19 Thread Dimitar Zhekov
On Wed, 19 May 2010 11:01:35 +0400
Eugene Arshinov earshi...@gmail.com wrote:

 [...]
 Also, could you please tell me how to view the X11 session (you are writing
 about Client_ and Legacy_)?

It's stored somewhere in your home directory. Normally there would be
one or more text files listing all session applications, with their XSM
and window properties, under .cache or .config; and other files
created by the individual applications.

The Xfce SM uses text lines starting with Client_ for XSMP and
Legacy_ for the previous (XAtom based IIRC) session protocol. Don't
know about the others.

--
E-gards: Jimmy
___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel


[Geany-devel] SM Client_ + Legacy_

2010-03-03 Thread Dimitar Zhekov
Hi.

First, let me apologize for not noticing the sm option replication.
Mea culpa.

Now to the point. I went ahead and tested the sm, and ran into a
problem: in the X11 session, the geany instances are stored both
as Client_ (by sm.c) and Legacy_ (by gtk/gdk, as in 0.18).

Normally a gdk_set_sm_client_id(new_client_id) would fix this, but
there is a side effect. The XSM window settings (maximized
state, desktop# etc.) are applied to the first window open by the
session client, and since sm_init() is run after the main geany window
is created:

1. Geany always appears on the first desktop.
2. If you choose File - Open or Edit - Preferences, and geany was
maximized, the Open or Preferences dialog appears maximized instead.
That depends on the dialog, for example, Open may also appear
minimized, while Find seems unaffected.

Using gdk_set_sm_client_id() and moving sm_init() before main_init()
will fix this, and since sm_init() is very limited, that shouldn't
break anything... but I'm not sure.

--
E-gards: Jimmy
___
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel