Small fixes.
svn path=/branches/work/kwin_composite/; revision=653431icc-effect-5.14.5
parent
9a749f2c7a
commit
a2a8c39a27
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=TestInput
|
||||
Name=Test_Input
|
||||
X-KDE-Library=kwin4_effect_tests
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=TestThumbnail
|
||||
Name=Test_Thumbnail
|
||||
X-KDE-Library=kwin4_effect_tests
|
||||
|
|
|
@ -42,6 +42,8 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
namespace KWin
|
||||
{
|
||||
|
||||
KWIN_EFFECT( VideoRecord, VideoRecordEffect )
|
||||
|
||||
VideoRecordEffect::VideoRecordEffect()
|
||||
: client( NULL )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue