summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbintegration.cpp6
-rw-r--r--src/plugins/platforms/blackberry/qbbintegration.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/platforms/blackberry/qbbintegration.cpp b/src/plugins/platforms/blackberry/qbbintegration.cpp
index e329bbe..5137431 100644
--- a/src/plugins/platforms/blackberry/qbbintegration.cpp
+++ b/src/plugins/platforms/blackberry/qbbintegration.cpp
@@ -361,13 +361,13 @@ void QBBIntegration::createDisplays()
if (!isAttached)
continue;
- createDisplay(displays[i], i == 0);
+ createDisplay(displays[i], i);
} // of displays iteration
}
-void QBBIntegration::createDisplay(screen_display_t display, bool isPrimary)
+void QBBIntegration::createDisplay(screen_display_t display, int screenIndex)
{
- QBBScreen *screen = new QBBScreen(mContext, display, isPrimary);
+ QBBScreen *screen = new QBBScreen(mContext, display, screenIndex);
mScreens.append(screen);
QObject::connect(mScreenEventHandler, SIGNAL(newWindowCreated(screen_window_t)),
diff --git a/src/plugins/platforms/blackberry/qbbintegration.h b/src/plugins/platforms/blackberry/qbbintegration.h
index b524950..921695a 100644
--- a/src/plugins/platforms/blackberry/qbbintegration.h
+++ b/src/plugins/platforms/blackberry/qbbintegration.h
@@ -88,7 +88,7 @@ public:
QBBScreen *screenForNative(screen_display_t screen) const;
- void createDisplay(screen_display_t display, bool isPrimary);
+ void createDisplay(screen_display_t display, int screenIndex);
void removeDisplay(QBBScreen *screen);
private:
QBBScreen *primaryDisplay() const;