summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-29 00:07:11 +0000
committerracarr <racarr>2007-01-29 00:07:11 +0000
commitc0462f9aec492d6d1196f3493595642ce6549a0b (patch)
tree6b4e33dea4447c912fcd664a60bc6aded3cab22c
parentf8e74debc0ef47fe8f216165e25a0c89606bf883 (diff)
downloadberyl-desktop-manager-c0462f9aec492d6d1196f3493595642ce6549a0b.tar.gz
beryl-desktop-manager-c0462f9aec492d6d1196f3493595642ce6549a0b.tar.bz2
Add screenArea * screenArea pointer to BDMWidget and in updateWidges continue if widget->screenArea != area
-rw-r--r--src/bdm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bdm.c b/src/bdm.c
index 41f322f..d7225a4 100644
--- a/src/bdm.c
+++ b/src/bdm.c
@@ -121,6 +121,8 @@ static void updateWidgets(cairo_t * cr,ScreenArea * area)
BDMText * text;
for (widgets=Widgets;widgets;widgets=widgets->next)
{
+ if ((widget->screenArea) != (area))
+ continue;
widget = widgets->data;
widget->updateWidget();
if (widget->attrib->needsPainting)
@@ -234,6 +236,7 @@ static int loadWidget (char * path)
widget->next = NULL;
widget->initWidget (widget);
+ /* TODO: Find how we want widget->screenArea set */
Widgets = g_slist_append (Widgets, widget);