]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.9.2/mb-panel-svn-r1162.diff
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-svn-r1162.diff
1 Index: src/panel.c
2 ===================================================================
3 --- src/panel.c (revision 1161)
4 +++ src/panel.c (revision 1162)
5 @@ -1009,10 +1009,6 @@
6    int xfd;
7    Bool had_rotation = False;
8  
9 -  XSelectInput (panel->dpy, panel->win, StructureNotifyMask|ExposureMask|
10 -               SubstructureRedirectMask|SubstructureNotifyMask|
11 -               ButtonPressMask|ButtonReleaseMask|PointerMotionMask|
12 -               PropertyChangeMask);
13  
14    XSelectInput (panel->dpy, panel->win_root, 
15                 PropertyChangeMask|StructureNotifyMask);
16 @@ -1090,6 +1086,7 @@
17                                                  &an_event.xconfigurerequest);
18               break;
19             case ConfigureNotify:
20 +             DBG("%s(): configureNotify\n", __func__);
21               if (an_event.xconfigure.window == panel->win_root)
22                 {
23                   had_rotation = True;
24 @@ -1110,6 +1107,8 @@
25                       int diff = 0;
26                       MBPanelApp *papp = NULL;
27  
28 +                     DBG("mark %i\n", __LINE__);
29 +
30                       if (panel->ignore_next_config)
31                         {
32                           panel->ignore_next_config = False;
33 @@ -1133,6 +1132,8 @@
34                           
35                           had_rotation = False;
36  
37 +                         DBG("mark %i\n", __LINE__);
38 +
39                           if ((PANEL_IS_VERTICAL(panel)
40                                && (an_event.xconfigure.width == panel->w)
41                                )
42 @@ -1142,7 +1143,7 @@
43                                /* && (an_event.xconfigure.width  == dpy_w) 
44                                   && dpy_w != panel->w */ )
45                               )
46 -                           {
47 +                           { 
48  
49                               DBG("%s() flipping ....\n", __func__);
50  
51 @@ -1178,7 +1179,8 @@
52                             papp = panel->apps_start_head;
53                           else
54                             papp = panel->apps_end_head;
55 -                       } else {                              
56 +                       } else {        
57 +                         DBG("mark %i\n", __LINE__);
58                           diff = an_event.xconfigure.width - panel->w;
59                           if (an_event.xconfigure.x > panel->x)
60                             papp = panel->apps_start_head;
61 @@ -1903,6 +1905,11 @@
62                          dattr_flags,
63                          &dattr);
64  
65 +  XSelectInput (panel->dpy, panel->win, StructureNotifyMask|ExposureMask|
66 +               SubstructureRedirectMask|SubstructureNotifyMask|
67 +               ButtonPressMask|ButtonReleaseMask|PointerMotionMask|
68 +               PropertyChangeMask);
69 +
70    size_hints.flags      = PPosition | PSize | PMinSize;
71    size_hints.x          = panel->x;
72    size_hints.y          = panel->y;
73 Index: ChangeLog
74 ===================================================================
75 --- ChangeLog   (revision 1161)
76 +++ ChangeLog   (revision 1162)
77 @@ -1,3 +1,10 @@
78 +2005-05-23  mallum,,,  <mallum@openedhand.com>
79 +
80 +       * src/panel.c: (panel_main), (panel_init):
81 +       Select for panel win events much earlier so we dont
82 +       miss initial configure notifys. Much improved panel
83 +       in titlebar.
84 +
85  2005-04-11  mallum,,,  <mallum@openedhand.com>
86  
87         * configure.ac: