]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/opie-taskbar/opie-taskbar/nomax.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / opie-taskbar / opie-taskbar / nomax.patch
1 --- opie-x86/core/launcher/server.cpp~nomax
2 +++ opie-x86/core/launcher/server.cpp
3 @@ -76,7 +76,7 @@
4      return 0;
5  #endif
6  }
7 -
8 +#ifndef OPIE_NO_WINDOWED
9  #define FACTORY(T) \
10      static QWidget *new##T( bool maximized ) { \
11      QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
12 @@ -90,7 +90,18 @@
13      w->show(); \
14      return w; \
15      }
16 +#else
17 +#define FACTORY(T) \
18 +    static QWidget *new##T( bool maximized ) { \
19 +    QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
20 +    if ( maximized ) { \
21 +        w->showMaximized(); \
22 +} \
23 +    w->show(); \
24 +    return w; \
25 +}
26  
27 +#endif
28  
29  #ifdef SINGLE_APP
30  #define APP(a,b,c,d) FACTORY(b)