author | kergoth <kergoth> | 2003-04-16 22:46:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-16 22:46:26 (UTC) |
commit | 43f1d8c741f37b7fa3021bd480b5370b2b22cb53 (patch) (unidiff) | |
tree | 49c96c4048f3ff53242e7ee56105e66bc3126d1d /libopie | |
parent | b98b64367e3871f3b34cf090376130f79698ce94 (diff) | |
download | opie-43f1d8c741f37b7fa3021bd480b5370b2b22cb53.zip opie-43f1d8c741f37b7fa3021bd480b5370b2b22cb53.tar.gz opie-43f1d8c741f37b7fa3021bd480b5370b2b22cb53.tar.bz2 |
Attempt to workaround oliver's reported suspend issue. Check for a qws server at runtime rather than init time, and set the keyboard filter in initButtons rather than init.
-rw-r--r-- | libopie/odevice.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 8f954b1..0e1c0dd 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -279,4 +279,6 @@ void ODevice::initButtons ( ) | |||
279 | return; | 279 | return; |
280 | 280 | ||
281 | d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false; | ||
282 | |||
281 | // Simulation uses iPAQ 3660 device buttons | 283 | // Simulation uses iPAQ 3660 device buttons |
282 | 284 | ||
@@ -763,6 +765,4 @@ void iPAQ::init ( ) | |||
763 | m_power_timer = 0; | 765 | m_power_timer = 0; |
764 | 766 | ||
765 | if ( d-> m_qwsserver ) | ||
766 | QWSServer::setKeyboardFilter ( this ); | ||
767 | } | 767 | } |
768 | 768 | ||
@@ -772,4 +772,9 @@ void iPAQ::initButtons ( ) | |||
772 | return; | 772 | return; |
773 | 773 | ||
774 | d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false; | ||
775 | |||
776 | if ( d-> m_qwsserver ) | ||
777 | QWSServer::setKeyboardFilter ( this ); | ||
778 | |||
774 | d-> m_buttons = new QValueList <ODeviceButton>; | 779 | d-> m_buttons = new QValueList <ODeviceButton>; |
775 | 780 | ||
@@ -1150,4 +1155,6 @@ void Zaurus::initButtons ( ) | |||
1150 | return; | 1155 | return; |
1151 | 1156 | ||
1157 | d-> m_qwsserver = qApp ? ( qApp-> type ( ) == QApplication::GuiServer ) : false; | ||
1158 | |||
1152 | d-> m_buttons = new QValueList <ODeviceButton>; | 1159 | d-> m_buttons = new QValueList <ODeviceButton>; |
1153 | 1160 | ||