[sugar] Experiments with Metacity

Benjamin M. Schwartz bmschwar
Mon Jun 2 11:04:58 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sayamindu Dasgupta wrote:
| Hi,
|
| On Mon, May 19, 2008 at 5:14 PM, Marco Pesenti Gritti
| <mpgritti at gmail.com> wrote:
|> On Mon, May 19, 2008 at 11:41 AM, Marco Pesenti Gritti
|> <mpgritti at gmail.com> wrote:
|>> Maximize + undecorated might work. It has to be done by each activity.
|> We could add an option to make metacity show *no* decoration for
|> maximized windows. As long as we have a Close menu on the frame that
|> should be desired also for desktop applications.
|>
|> Ideally we could figure out a way to make metacity maximize activity
|> windows by default, but I can't think of a clean way to do it. One
|> problem with doing the maximize in the activity is that it would still
|> do so when running on a normal desktop.
|>
|
| I tried the alternative of modifying metacity instead of playing
| around with the activities.
| My plan is to make metacity behave a little differently (ie: maximize
| and undecorate any window with the hint GDK_WINDOW_TYPE_HINT_NORMAL,
| as suggested by Marco in
| http://wiki.sugarlabs.org/go/WindowManagement) when it runs inside
| Sugar. For this, I think a possible way forward is to have
| olpc-session export a environment variable SUGAR_SESSION_RUNNING=1,
| which would be checked by metacity before it goes into the "sugary
| mode" [1]. Does this sound sane ?

No.  Why not just have activities run with _NET_WM_STATE_ =
_NET_WM_STATE_FULLSCREEN in their EWMH X properties?  There is no need to
modify Metacity.

- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhEDBkACgkQUJT6e6HFtqTzaACeNOMw0xhBDGgRQ4s3NpzPbs27
YnUAn0ldWN2InfL0lmdX6JhGe9bWZZE0
=KXs8
-----END PGP SIGNATURE-----



More information about the Sugar-devel mailing list