mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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.
This commit is contained in:
parent
4edccc4eb5
commit
f83ac8476c
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2001-10-12 Mikael Hallendal <micke@codefactory.se>
|
2001-10-12 Mikael Hallendal <micke@codefactory.se>
|
||||||
|
|
||||||
* src/ui.c (meta_ui_get_default_window_icon): use
|
* src/ui.c (meta_ui_get_default_window_icon): use
|
||||||
|
@ -246,10 +246,11 @@ meta_session_init (const char *previous_id)
|
|||||||
current_state = STATE_REGISTERING;
|
current_state = STATE_REGISTERING;
|
||||||
|
|
||||||
{
|
{
|
||||||
SmProp prop1, prop2, prop3, prop4, prop5, *props[5];
|
SmProp prop1, prop2, prop3, prop4, prop5, prop6, *props[6];
|
||||||
SmPropValue prop1val, prop2val, prop3val, prop4val, prop5val;
|
SmPropValue prop1val, prop2val, prop3val, prop4val, prop5val, prop6val;
|
||||||
char pid[32];
|
char pid[32];
|
||||||
char hint = SmRestartIfRunning;
|
char hint = SmRestartIfRunning;
|
||||||
|
char priority = 20; /* low to run before other apps */
|
||||||
|
|
||||||
prop1.name = SmProgram;
|
prop1.name = SmProgram;
|
||||||
prop1.type = SmARRAY8;
|
prop1.type = SmARRAY8;
|
||||||
@ -291,13 +292,21 @@ meta_session_init (const char *previous_id)
|
|||||||
prop5val.value = g_get_home_dir ();
|
prop5val.value = g_get_home_dir ();
|
||||||
prop5val.length = strlen (prop5val.value);
|
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[0] = &prop1;
|
||||||
props[1] = &prop2;
|
props[1] = &prop2;
|
||||||
props[2] = &prop3;
|
props[2] = &prop3;
|
||||||
props[3] = &prop4;
|
props[3] = &prop4;
|
||||||
props[4] = &prop5;
|
props[4] = &prop5;
|
||||||
|
props[5] = &prop6;
|
||||||
|
|
||||||
SmcSetProperties (session_connection, 5, props);
|
SmcSetProperties (session_connection, 6, props);
|
||||||
}
|
}
|
||||||
|
|
||||||
set_clone_restart_commands ();
|
set_clone_restart_commands ();
|
||||||
|
Loading…
Reference in New Issue
Block a user