]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.8.3/wifi-location.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / matchbox-panel / matchbox-panel-0.8.3 / wifi-location.patch
1 --- matchbox-panel-0.8.1/src/panel.c    Mon Oct 25 00:15:53 2004
2 +++ matchbox-panel-0.8.1/src/panel.c    Tue Oct 26 21:40:56 2004
3 @@ -813,6 +813,7 @@
4    int app_origin_dist = 0;
5    char *cmd_str = NULL;
6    MBPanelApp *new_papp = NULL;
7 +  Bool from_session = False;
8  
9    util_get_command_str_from_win(panel, win, &cmd_str); /* cmd_str freed l8r */
10  
11 @@ -820,9 +821,10 @@
12      {
13        app_origin_dist = panel->session_init_offset;
14        session_preexisting_clear_current(panel);
15 +      from_session = True;
16      }
17  
18 -  new_papp = panel_app_new(panel, win, cmd_str);
19 +  new_papp = panel_app_new(panel, win, cmd_str, from_session);
20  
21    if (new_papp) 
22      {
23 --- matchbox-panel-0.8.1/src/panel_app.c        Mon Oct 25 00:15:53 2004
24 +++ matchbox-panel-0.8.1/src/panel_app.c        Tue Oct 26 21:39:28 2004
25 @@ -239,7 +239,7 @@
26  }
27  
28  MBPanelApp *
29 -panel_app_new(MBPanel *panel, Window win, char *cmd_str)
30 +panel_app_new(MBPanel *panel, Window win, char *cmd_str, Bool from_session)
31  {
32    MBPanelApp        *papp;
33    XWindowAttributes  attr;
34 @@ -261,7 +261,7 @@
35    papp->w = attr.width;
36    papp->h = attr.height;
37  
38 -  if (session_preexisting_restarting(panel) && !panel->session_run_first_time)
39 +  if (session_preexisting_restarting(panel) && !panel->session_run_first_time && from_session)
40      {
41        if (panel->session_cur_gravity == PAPP_GRAVITY_START)
42         add_at_start = True;
43 --- matchbox-panel-0.8.1/src/panel_app.h        Tue Feb  3 15:11:25 2004
44 +++ matchbox-panel-0.8.1/src/panel_app.h        Tue Oct 26 21:42:07 2004
45 @@ -61,7 +61,8 @@
46  
47  MBPanelApp* panel_app_new(MBPanel *panel, 
48                           Window   win, 
49 -                         char    *cmd );
50 +                         char    *cmd,
51 +                         Bool     from_session);
52  
53  void panel_app_handle_configure_request(MBPanel *panel, 
54                                         XConfigureRequestEvent *ev);