Small fixes.

svn path=/branches/work/kwin_composite/; revision=653431
icc-effect-5.14.5
Luboš Luňák 2007-04-13 10:08:18 +00:00
parent 9a749f2c7a
commit a2a8c39a27
12 changed files with 25 additions and 12 deletions

View File

@ -13,7 +13,7 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( DemoShiftWorkspaceUp, ShiftWorkspaceUpEffect )
KWIN_EFFECT( Demo_ShiftWorkspaceUp, ShiftWorkspaceUpEffect )
ShiftWorkspaceUpEffect::ShiftWorkspaceUpEffect()
: up( false )

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Encoding=UTF-8
Name=DemoShiftWorkspaceUp
X-KDE-Library=kwin4_effect_demos
Name=Demo_ShiftWorkspaceUp
X-KDE-Library=kwin4_effect_tests

View File

@ -16,7 +16,7 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( DemoTaskbarThumbnail, TaskbarThumbnailEffect )
KWIN_EFFECT( Demo_TaskbarThumbnail, TaskbarThumbnailEffect )
TaskbarThumbnailEffect::TaskbarThumbnailEffect()
{

View File

@ -1,4 +1,5 @@
[Desktop Entry]
Encoding=UTF-8
Name=DemoTaskbarThumbnail
X-KDE-Library=kwin4_effect_demos
Name=Demo_TaskbarThumbnail
X-KDE-Library=kwin4_effect_tests

View File

@ -19,7 +19,7 @@ KWIN_EFFECT( DimInactive, DimInactiveEffect )
DimInactiveEffect::DimInactiveEffect()
: active( NULL )
{
dim_panels = true; // TODO config option
dim_panels = false; // TODO config option
dim_by_group = true; // TODO config option
}
@ -27,7 +27,12 @@ void DimInactiveEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
{
bool dim = false;
if( active == NULL )
dim = true;
{
if( !w->isDock() || dim_panels )
dim = true;
else
dim = false;
}
else if( dim_by_group && active->group() == w->group())
dim = false;
else if( !dim_by_group && active == w )

View File

@ -23,6 +23,9 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
// This macro creates entry function for the plugin. First argument is name, second is class name.
KWIN_EFFECT( Howto, HowtoEffect )
// A pre-paint function that tells the compositing code how this effect will affect
// the painting. During every painting pass this function is called first, before
// the actual painting function.

View File

@ -29,7 +29,7 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( TestInput, TestInputEffect )
KWIN_EFFECT( Test_Input, TestInputEffect )
TestInputEffect::TestInputEffect()
{

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Encoding=UTF-8
Name=TestInput
Name=Test_Input
X-KDE-Library=kwin4_effect_tests

View File

@ -20,7 +20,7 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( TestThumbnail, TestThumbnailEffect )
KWIN_EFFECT( Test_Thumbnail, TestThumbnailEffect )
TestThumbnailEffect::TestThumbnailEffect()
: active_window( NULL )

View File

@ -1,4 +1,4 @@
[Desktop Entry]
Encoding=UTF-8
Name=TestThumbnail
Name=Test_Thumbnail
X-KDE-Library=kwin4_effect_tests

View File

@ -42,6 +42,8 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( VideoRecord, VideoRecordEffect )
VideoRecordEffect::VideoRecordEffect()
: client( NULL )
{

View File

@ -13,6 +13,8 @@ License. See the file "COPYING" for the exact licensing terms.
namespace KWin
{
KWIN_EFFECT( Zoom, ZoomEffect )
ZoomEffect::ZoomEffect()
: zoom( 1 )
, target_zoom( 2 )