diff options
author | Havoc Pennington <hp@pobox.com> | 2001-10-12 04:52:53 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-12 04:52:53 +0000 |
commit | f83ac8476cac365035b7627978fcc6379c216275 (patch) | |
tree | b3877083cd4b4d39b94fc42007c5109f7a7ad070 /src/session.c | |
parent | 4edccc4eb54bb9443336c1674a0351b35ea93604 (diff) | |
download | metacity-f83ac8476cac365035b7627978fcc6379c216275.tar.gz |
set the session manager priority so we start up before other apps.
2001-10-12 Havoc Pennington <hp@pobox.com>
* src/session.c (meta_session_init): set the session manager
priority so we start up before other apps.
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/session.c b/src/session.c index 525b7da8..dc201835 100644 --- a/src/session.c +++ b/src/session.c @@ -246,10 +246,11 @@ meta_session_init (const char *previous_id) current_state = STATE_REGISTERING; { - SmProp prop1, prop2, prop3, prop4, prop5, *props[5]; - SmPropValue prop1val, prop2val, prop3val, prop4val, prop5val; + SmProp prop1, prop2, prop3, prop4, prop5, prop6, *props[6]; + SmPropValue prop1val, prop2val, prop3val, prop4val, prop5val, prop6val; char pid[32]; char hint = SmRestartIfRunning; + char priority = 20; /* low to run before other apps */ prop1.name = SmProgram; prop1.type = SmARRAY8; @@ -290,14 +291,22 @@ meta_session_init (const char *previous_id) prop5.vals = &prop5val; prop5val.value = g_get_home_dir (); prop5val.length = strlen (prop5val.value); + + prop6.name = "_GSM_Priority"; + prop6.type = SmCARD8 + prop6.num_vals = 1; + prop6.vals = &prop6val; + prop6val.value = &priority; + prop6val.length = 1; props[0] = &prop1; props[1] = &prop2; props[2] = &prop3; props[3] = &prop4; props[4] = &prop5; + props[5] = &prop6; - SmcSetProperties (session_connection, 5, props); + SmcSetProperties (session_connection, 6, props); } set_clone_restart_commands (); |