[beryl-commits] r1484 - trunk/beryl-plugins/src
roico at server.beryl-project.org
roico at server.beryl-project.org
Sat Dec 2 00:22:46 CET 2006
Author: roico
Date: 2006-12-02 00:22:46 +0100 (Sat, 02 Dec 2006)
New Revision: 1484
Modified:
trunk/beryl-plugins/src/cube.c
Log:
added am IPCS which detects if the "inside cube" mode is done (needed
for 3d).
Modified: trunk/beryl-plugins/src/cube.c
===================================================================
--- trunk/beryl-plugins/src/cube.c 2006-12-01 15:48:56 UTC (rev 1483)
+++ trunk/beryl-plugins/src/cube.c 2006-12-01 23:22:46 UTC (rev 1484)
@@ -268,6 +268,8 @@
MultiMonitorMode mmMode;
int mmModeAtom;
+
+ int insideAtom;
float desktopOpacity;
float toOpacity;
@@ -982,7 +984,11 @@
{
if (cubeUpdateGeometry
(screen, screen->hsize, o->value.b ? -1 : 1))
+ {
+ IPCS_SetBool (IPCS_OBJECT (screen), cs->insideAtom, o->value.b);
+
return TRUE;
+ }
}
break;
case CUBE_SCREEN_OPTION_SCALE_IMAGE_TOP:
@@ -2197,7 +2203,8 @@
(cs->invert != 1 || sa.vRotate != 0.0f || sa.yTranslate != 0.0f ||
(cs->opt[CUBE_SCREEN_OPTION_TRANSPARENT].value.b &&
cs->desktopOpacity != OPAQUE))
- && cs->opt[CUBE_SCREEN_OPTION_DRAW_CAPS].value.b)
+ && cs->opt[CUBE_SCREEN_OPTION_DRAW_CAPS].value.b
+ && !compDisplayGetRequestFlagForAny (s->display, "NO_CUBE_CAPS"))
{
screenLighting (s, TRUE);
@@ -2862,6 +2869,12 @@
IPCS_SetInt (IPCS_OBJECT (s),
cs->mmModeAtom,
cs->mmMode);
+
+ cs->insideAtom = IPCS_GetAtom (IPCS_OBJECT (s), IPCS_BOOL,
+ "INSIDE", TRUE);
+ IPCS_SetBool (IPCS_OBJECT (s),
+ cs->insideAtom,
+ CUBE_IN_DEFAULT);
addScreenAction (s, &cd->opt[CUBE_DISPLAY_OPTION_UNFOLD].value.action);
More information about the commits
mailing list