]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.9.2/mb-panel-0.9.2-msgcancel.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.9.2 / mb-panel-0.9.2-msgcancel.patch
1 diff -ur clean/matchbox-panel-0.9.2/src/msg.c matchbox-panel-0.9.2/src/msg.c
2 --- clean/matchbox-panel-0.9.2/src/msg.c        2006-01-19 19:38:48.293865576 +0000
3 +++ matchbox-panel-0.9.2/src/msg.c      2006-01-19 19:42:02.139396576 +0000
4 @@ -547,6 +547,20 @@
5    XFreePixmap(panel->dpy, mask);
6  }
7  
8 +void
9 +msg_cancel (MBPanel *panel, XClientMessageEvent *e)
10 +{
11 +   MBPanelApp *sender;
12 +
13 +   if ((sender = panel_app_get_from_window(panel, e->window )) == NULL)
14 +     return;
15 +   
16 +   if (panel->msg_win && panel->msg_win_sender == sender && panel->msg_sender_id == e->data.l[2])
17 +     {
18 +       XDestroyWindow(panel->dpy, panel->msg_win);
19 +       panel->msg_win = None;
20 +     }
21 +}
22  
23  void
24  msg_handle_events(MBPanel *panel, XEvent *e)
25 @@ -566,6 +580,7 @@
26          panel->msg_starttime  = msg->starttime;
27          panel->msg_timeout    = msg->timeout; 
28          panel->msg_win_sender = msg->sender;
29 +        panel->msg_sender_id  = msg->id;
30  
31          panel->msg_has_context = False;
32  
33 diff -ur clean/matchbox-panel-0.9.2/src/msg.h matchbox-panel-0.9.2/src/msg.h
34 --- clean/matchbox-panel-0.9.2/src/msg.h        2006-01-19 19:38:48.313862536 +0000
35 +++ matchbox-panel-0.9.2/src/msg.h      2006-01-19 19:39:29.706569888 +0000
36 @@ -16,5 +16,6 @@
37  void msg_add_data(MBPanel *d, XClientMessageEvent *e);
38  void msg_handle_events(MBPanel *d, XEvent *e);
39  Bool msg_set_timeout(MBPanel *d, struct timeval *tv, struct timeval **tvp);
40 +void msg_cancel(MBPanel *d, XClientMessageEvent *e);
41  
42  #endif
43 Only in matchbox-panel-0.9.2/src/: msg.h~
44 Only in matchbox-panel-0.9.2/src/: msg.o
45 Only in matchbox-panel-0.9.2/src/: panel_app.o
46 diff -ur clean/matchbox-panel-0.9.2/src/panel.c matchbox-panel-0.9.2/src/panel.c
47 --- clean/matchbox-panel-0.9.2/src/panel.c      2006-01-19 19:38:48.349857064 +0000
48 +++ matchbox-panel-0.9.2/src/panel.c    2006-01-19 19:37:54.912980704 +0000
49 @@ -886,6 +886,7 @@
50           break;
51         case SYSTEM_TRAY_CANCEL_MESSAGE:
52           DBG("%s() is SYSTEM_TRAY_CANCEL_MESSAGE\n", __func__ );
53 +         msg_cancel(panel, e);
54           break;
55         }
56        return;
57 diff -ur clean/matchbox-panel-0.9.2/src/panel.h matchbox-panel-0.9.2/src/panel.h
58 --- clean/matchbox-panel-0.9.2/src/panel.h      2005-03-20 17:43:33.000000000 +0000
59 +++ matchbox-panel-0.9.2/src/panel.h    2006-01-19 19:40:43.701320976 +0000
60 @@ -212,6 +212,7 @@
61    int                     msg_timeout; 
62    MBPanelApp             *msg_win_sender;
63    Bool                    msg_has_context;
64 +  unsigned long                  msg_sender_id;
65    int                     msg_context_y1, msg_context_y2;
66  
67    GC                      msg_gc;