]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qte/qte-2.3.10/mnci.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qte / qte-2.3.10 / mnci.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp~ramses.patch
7 +++ qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp
8 @@ -249,20 +249,12 @@
9  
10  static void writeTerm(const char* termctl, int sizeof_termctl)
11  {
12 -#ifdef QT_QWS_DEVFS
13 -    const char* tt[]={"/dev/vc/1","/dev/console","/dev/tty",0};
14 -#else
15 -    const char* tt[]={"/dev/console","/dev/tty","/dev/tty0",0};
16 -#endif
17 -    const char** dev=tt;
18 -    while (*dev) {
19 -       int tty=::open(*dev,O_WRONLY);
20 +qWarning("writeTerm");
21 +        int tty=::open("/dev/vc/2", O_WRONLY);
22         if ( tty>=0 ) {
23             ::write(tty,termctl,sizeof_termctl);
24             ::close(tty);
25         }
26 -       dev++;
27 -    }
28  }
29  
30  /*!
31 @@ -275,6 +267,7 @@
32  
33  bool QLinuxFbScreen::initDevice()
34  {
35 +qWarning("QLinuxFbScreen::initDevice");
36      /* Setting up the VT parameters is done in qapplication_qws.cpp
37      const char termctl[]="\033[9;0]\033[?33l\033[?25l";
38      writeTerm(termctl,sizeof(termctl)); */
39 @@ -765,9 +758,12 @@
40      }
41  */
42  
43 +qWarning("QLinuxFbScreen::shutdownDevice");
44 +/*
45      // Blankin' screen, blinkin' cursor!
46      const char termctl[] = "\033[9;15]\033[?33h\033[?25h\033[?0c";
47      writeTerm(termctl,sizeof(termctl));
48 +*/
49  }
50  
51  /*!
52 --- qt-2.3.10/src/kernel/qapplication_qws.cpp~ramses.patch
53 +++ qt-2.3.10/src/kernel/qapplication_qws.cpp
54 @@ -1756,8 +1756,6 @@
55       */
56      if ( qws_daemon )
57      {
58 -        qWarning( "qt_init() - starting in daemon mode..." );
59 -
60          int pid1 = fork();
61          if ( pid1 == -1 )
62          {
63 @@ -1791,7 +1789,6 @@
64          }
65          if ( pid2 )
66          {
67 -             syslog( 4, "qt_init() [%d] - successfully entered daemon mode", pid2 );
68              _exit( 0 ); // ok, second fork performed
69          }
70      }
71 @@ -1828,9 +1825,12 @@
72      #if defined(_OS_LINUX_)
73      if ( qws_terminal_id )
74      {
75 -        qDebug( "qt_init() - terminal specification is '%d'.", qws_terminal_id );
76          struct vt_stat console_stat;
77 +#ifdef QT_QWS_DEVFS
78 +        int console_fd = ::open( QString().sprintf( "/dev/vc/%d", qws_terminal_id ).latin1(), O_RDWR );
79 +#else
80          int console_fd = ::open( QString().sprintf( "/dev/tty%d", qws_terminal_id ).latin1(), O_RDWR );
81 +#endif
82          if ( console_fd == -1)
83          {
84              qWarning( "qt_init() - can't open tty: %s", strerror( errno ) );
85 @@ -1927,7 +1927,11 @@
86          {
87              qDebug( "qt_cleanup() - switching back to virtual terminal #%d", qws_terminal_old );
88  
89 +#ifdef QT_QWS_DEVFS
90 +            int console_fd = ::open( "/dev/vc/0", O_RDWR );
91 +#else
92              int console_fd = ::open( "/dev/tty0", O_RDWR );
93 +#endif
94              if ( console_fd == -1)
95              {
96                  qWarning( "qt_init() - can't open tty: %s", strerror( errno ) );
97 --- qt-2.3.10/src/kernel/qwindowsystem_qws.cpp~ramses.patch
98 +++ qt-2.3.10/src/kernel/qwindowsystem_qws.cpp
99 @@ -1791,6 +1791,7 @@
100  }
101  
102  #ifndef QT_NO_QWS_KEYBOARD
103 +#ifndef QT_QWS_RAMSES
104  static int keyUnicode(int keycode)
105  {
106      const QWSServer::KeyMap *km = QWSServer::keyMap();
107 @@ -1803,6 +1804,7 @@
108      return 0xffff;
109  }
110  #endif
111 +#endif
112  /*!
113    Send a key event. You can use this to send key events generated by
114    "virtual keyboards".
115 @@ -1845,8 +1847,10 @@
116  
117      event.simpleData.unicode = 
118  #ifndef QT_NO_QWS_KEYBOARD
119 +#ifndef QT_QWS_RAMSES
120         unicode < 0 ? keyUnicode(keycode) : 
121  #endif
122 +#endif
123         unicode;
124      event.simpleData.keycode = keycode;
125      event.simpleData.modifiers = modifiers;