summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/ctaskbar.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 22:51:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 22:51:34 +0000
commit1d3abc8d480110850480ca27560e6a9672052e0b (patch)
treed3fe39dd74ee37e27515c87e27230b6bad3d6d95 /NxWidgets/nxwm/src/ctaskbar.cxx
parent9384da7066d128ab6a0fb7616a671047c374cd4a (diff)
downloadpx4-nuttx-1d3abc8d480110850480ca27560e6a9672052e0b.tar.gz
px4-nuttx-1d3abc8d480110850480ca27560e6a9672052e0b.tar.bz2
px4-nuttx-1d3abc8d480110850480ca27560e6a9672052e0b.zip
More NX window manager updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4679 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/ctaskbar.cxx')
-rw-r--r--NxWidgets/nxwm/src/ctaskbar.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/NxWidgets/nxwm/src/ctaskbar.cxx b/NxWidgets/nxwm/src/ctaskbar.cxx
index 42cb41087..3791ee0f6 100644
--- a/NxWidgets/nxwm/src/ctaskbar.cxx
+++ b/NxWidgets/nxwm/src/ctaskbar.cxx
@@ -163,14 +163,14 @@ bool CTaskbar::startWindowManager(void)
* Create an application window. Creating a new application in the start
* window requires three steps:
*
- * 1. Call openApplicationWindow to create a window for the application,
+ * 1. Call CTaskBar::openApplicationWindow to create a window for the application,
* 2. Instantiate the application, providing the window to the application's
* constructor,
- * 3. Then call addApplication to add the application to the start window.
+ * 3. Then call CStartWindow::addApplication to add the application to the start window.
*
* When the application is selected from the start window:
*
- * 4. Call startApplication start the application and bring its window to
+ * 4. Call CTaskBar::startApplication start the application and bring its window to
* the top.
*/
@@ -242,6 +242,7 @@ bool CTaskbar::startApplication(IApplication *app, bool minimized)
image->setBorderless(true);
image->disableDrawing();
+ image->setRaisesEvents(false);
// Register to get events from the mouse clicks on the image
@@ -393,7 +394,7 @@ bool CTaskbar::stopApplication(IApplication *app)
minimizeApplication(app);
- // Stop the appliation
+ // Stop the application
app->stop();
@@ -863,9 +864,10 @@ bool CTaskbar::redrawTaskbarWindow(void)
NXWidgets::CImage *image = m_slots.at(i).image;
- // Disable drawing of the icon image
+ // Disable drawing of the icon image; disable events from the icon
image->disableDrawing();
+ image->setRaisesEvents(false);
// Get the size of the icon image
@@ -895,8 +897,9 @@ bool CTaskbar::redrawTaskbarWindow(void)
// Then re-draw the icon at the new position
- (void)image->enableDrawing();
- (void)image->redraw();
+ image->enableDrawing();
+ image->redraw();
+ image->setRaisesEvents(true);
// Do we add icons left-to-right? Or top-to-bottom?
@@ -1051,5 +1054,3 @@ void CTaskbar::handleClickEvent(const NXWidgets::CWidgetEventArgs &e)
}
}
}
-
-