aboutsummaryrefslogtreecommitdiffstats
path: root/opie-taskbar/opie-taskbar/nomax.patch
diff options
context:
space:
mode:
Diffstat (limited to 'opie-taskbar/opie-taskbar/nomax.patch')
-rw-r--r--opie-taskbar/opie-taskbar/nomax.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/opie-taskbar/opie-taskbar/nomax.patch b/opie-taskbar/opie-taskbar/nomax.patch
index e69de29bb2..468038b377 100644
--- a/opie-taskbar/opie-taskbar/nomax.patch
+++ b/opie-taskbar/opie-taskbar/nomax.patch
@@ -0,0 +1,30 @@
+--- opie-x86/core/launcher/server.cpp~nomax
++++ opie-x86/core/launcher/server.cpp
+@@ -76,7 +76,7 @@
+ return 0;
+ #endif
+ }
+-
++#ifndef OPIE_NO_WINDOWED
+ #define FACTORY(T) \
+ static QWidget *new##T( bool maximized ) { \
+ QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
+@@ -90,7 +90,18 @@
+ w->show(); \
+ return w; \
+ }
++#else
++#define FACTORY(T) \
++ static QWidget *new##T( bool maximized ) { \
++ QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
++ if ( maximized ) { \
++ w->showMaximized(); \
++} \
++ w->show(); \
++ return w; \
++}
+
++#endif
+
+ #ifdef SINGLE_APP
+ #define APP(a,b,c,d) FACTORY(b)