summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 12:16:22 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 12:16:22 +0000
commit3e83521bc8af12792edc36977ed22b20333c4257 (patch)
tree391a1049186355bd4d0cc0e0cd178de0f465112d
parentae246a17d627b0556cf9cdffaf3078991334f060 (diff)
downloadmarex-dev-3e83521bc8af12792edc36977ed22b20333c4257.tar.gz
marex-dev-3e83521bc8af12792edc36977ed22b20333c4257.tar.bz2
switcher plugin: fixed wrong window count when using the viewport only / all viewports in a mixed manner
git-svn-id: file:///beryl/trunk@4052 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r--beryl-plugins/src/switcher.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/beryl-plugins/src/switcher.c b/beryl-plugins/src/switcher.c
index b855986..422a861 100644
--- a/beryl-plugins/src/switcher.c
+++ b/beryl-plugins/src/switcher.c
@@ -1214,6 +1214,8 @@ static void switchInitiate(CompScreen * s, Bool allWindows, SwitcherMode switchM
if (otherScreenGrabExist(s, "scale", "cube", 0))
return;
+ ss->allWindows = allWindows;
+
count = switchCountWindows(s);
if (count < 1)
return;
@@ -1224,7 +1226,6 @@ static void switchInitiate(CompScreen * s, Bool allWindows, SwitcherMode switchM
ss->switchMode = switchMode;
ss->head = head;
- ss->allWindows = allWindows;
if (!ss->showWindowList && ss->popupWindow)
{
@@ -2294,7 +2295,8 @@ switchPaintWindow(CompWindow * w,
s->display->textureFilter = filter;
cx = w->attrib.x + (w->width >> 1);
-/*
+
+ /*
if (ss->switchMode == ApplicationSwitcher)
{
glDisableClientState(GL_TEXTURE_COORD_ARRAY);