Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KWin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
KWin
Commits
640fdc7b
Commit
640fdc7b
authored
Mar 12, 2011
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PropertyNotify becomes a signal
parent
f134a5c6
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
53 additions
and
39 deletions
+53
-39
effects.cpp
effects.cpp
+12
-3
effects.h
effects.h
+2
-1
effects/blur/blur.cpp
effects/blur/blur.cpp
+2
-1
effects/blur/blur.h
effects/blur/blur.h
+1
-1
effects/highlightwindow/highlightwindow.cpp
effects/highlightwindow/highlightwindow.cpp
+3
-2
effects/highlightwindow/highlightwindow.h
effects/highlightwindow/highlightwindow.h
+1
-2
effects/logout/logout.cpp
effects/logout/logout.cpp
+2
-1
effects/logout/logout.h
effects/logout/logout.h
+1
-1
effects/presentwindows/presentwindows.cpp
effects/presentwindows/presentwindows.cpp
+2
-1
effects/presentwindows/presentwindows.h
effects/presentwindows/presentwindows.h
+2
-3
effects/slidingpopups/slidingpopups.cpp
effects/slidingpopups/slidingpopups.cpp
+4
-3
effects/slidingpopups/slidingpopups.h
effects/slidingpopups/slidingpopups.h
+1
-1
effects/taskbarthumbnail/taskbarthumbnail.cpp
effects/taskbarthumbnail/taskbarthumbnail.cpp
+3
-2
effects/taskbarthumbnail/taskbarthumbnail.h
effects/taskbarthumbnail/taskbarthumbnail.h
+1
-1
events.cpp
events.cpp
+3
-4
libkwineffects/kwineffects.cpp
libkwineffects/kwineffects.cpp
+0
-4
libkwineffects/kwineffects.h
libkwineffects/kwineffects.h
+11
-8
toplevel.h
toplevel.h
+1
-0
workspace.h
workspace.h
+1
-0
No files found.
effects.cpp
View file @
640fdc7b
...
...
@@ -105,6 +105,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(CompositingType type)
connect
(
ws
,
SIGNAL
(
numberDesktopsChanged
(
int
)),
SIGNAL
(
numberDesktopsChanged
(
int
)));
connect
(
ws
,
SIGNAL
(
mouseChanged
(
QPoint
,
QPoint
,
Qt
::
MouseButtons
,
Qt
::
MouseButtons
,
Qt
::
KeyboardModifiers
,
Qt
::
KeyboardModifiers
)),
SIGNAL
(
mouseChanged
(
QPoint
,
QPoint
,
Qt
::
MouseButtons
,
Qt
::
MouseButtons
,
Qt
::
KeyboardModifiers
,
Qt
::
KeyboardModifiers
)));
connect
(
ws
,
SIGNAL
(
propertyNotify
(
long
)),
this
,
SLOT
(
slotPropertyNotify
(
long
)));
connect
(
ws
->
tabBox
(),
SIGNAL
(
tabBoxAdded
(
int
)),
SIGNAL
(
tabBoxAdded
(
int
)));
connect
(
ws
->
tabBox
(),
SIGNAL
(
tabBoxUpdated
()),
SIGNAL
(
tabBoxUpdated
()));
connect
(
ws
->
tabBox
(),
SIGNAL
(
tabBoxClosed
()),
SIGNAL
(
tabBoxClosed
()));
...
...
@@ -138,6 +139,7 @@ void EffectsHandlerImpl::setupClientConnections(Client* c)
connect
(
c
,
SIGNAL
(
clientUnminimized
(
KWin
::
Client
*
,
bool
)),
this
,
SLOT
(
slotClientUnminimized
(
KWin
::
Client
*
,
bool
)));
connect
(
c
,
SIGNAL
(
clientGeometryShapeChanged
(
KWin
::
Client
*
,
QRect
)),
this
,
SLOT
(
slotClientGeometryShapeChanged
(
KWin
::
Client
*
,
QRect
)));
connect
(
c
,
SIGNAL
(
damaged
(
KWin
::
Toplevel
*
,
QRect
)),
this
,
SLOT
(
slotWindowDamaged
(
KWin
::
Toplevel
*
,
QRect
)));
connect
(
c
,
SIGNAL
(
propertyNotify
(
KWin
::
Toplevel
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
KWin
::
Toplevel
*
,
long
)));
}
void
EffectsHandlerImpl
::
setupUnmanagedConnections
(
Unmanaged
*
u
)
...
...
@@ -146,6 +148,7 @@ void EffectsHandlerImpl::setupUnmanagedConnections(Unmanaged* u)
connect
(
u
,
SIGNAL
(
opacityChanged
(
KWin
::
Toplevel
*
,
qreal
)),
this
,
SLOT
(
slotOpacityChanged
(
KWin
::
Toplevel
*
,
qreal
)));
connect
(
u
,
SIGNAL
(
unmanagedGeometryShapeChanged
(
KWin
::
Unmanaged
*
,
QRect
)),
this
,
SLOT
(
slotUnmanagedGeometryShapeChanged
(
KWin
::
Unmanaged
*
,
QRect
)));
connect
(
u
,
SIGNAL
(
damaged
(
KWin
::
Toplevel
*
,
QRect
)),
this
,
SLOT
(
slotWindowDamaged
(
KWin
::
Toplevel
*
,
QRect
)));
connect
(
u
,
SIGNAL
(
propertyNotify
(
KWin
::
Toplevel
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
KWin
::
Toplevel
*
,
long
)));
}
void
EffectsHandlerImpl
::
reconfigure
()
...
...
@@ -492,12 +495,18 @@ bool EffectsHandlerImpl::hasKeyboardGrab() const
return
keyboard_grab_effect
!=
NULL
;
}
void
EffectsHandlerImpl
::
propertyNotify
(
EffectWindow
*
c
,
long
atom
)
void
EffectsHandlerImpl
::
slotPropertyNotify
(
Toplevel
*
t
,
long
int
atom
)
{
if
(
!
registered_atoms
.
contains
(
atom
))
return
;
foreach
(
const
EffectPair
&
ep
,
loaded_effects
)
ep
.
second
->
propertyNotify
(
c
,
atom
);
emit
propertyNotify
(
t
->
effectWindow
(),
atom
);
}
void
EffectsHandlerImpl
::
slotPropertyNotify
(
long
int
atom
)
{
if
(
!
registered_atoms
.
contains
(
atom
))
return
;
emit
propertyNotify
(
NULL
,
atom
);
}
void
EffectsHandlerImpl
::
registerPropertyType
(
long
atom
,
bool
reg
)
...
...
effects.h
View file @
640fdc7b
...
...
@@ -162,7 +162,6 @@ public:
bool
borderActivated
(
ElectricBorder
border
);
void
grabbedKeyboardEvent
(
QKeyEvent
*
e
);
bool
hasKeyboardGrab
()
const
;
void
propertyNotify
(
EffectWindow
*
c
,
long
atom
);
bool
loadEffect
(
const
QString
&
name
);
void
toggleEffect
(
const
QString
&
name
);
...
...
@@ -195,6 +194,8 @@ protected Q_SLOTS:
void
slotClientGeometryShapeChanged
(
KWin
::
Client
*
c
,
const
QRect
&
old
);
void
slotUnmanagedGeometryShapeChanged
(
KWin
::
Unmanaged
*
u
,
const
QRect
&
old
);
void
slotWindowDamaged
(
KWin
::
Toplevel
*
t
,
const
QRect
&
r
);
void
slotPropertyNotify
(
KWin
::
Toplevel
*
t
,
long
atom
);
void
slotPropertyNotify
(
long
atom
);
protected:
KLibrary
*
findEffectLibrary
(
KService
*
service
);
...
...
effects/blur/blur.cpp
View file @
640fdc7b
...
...
@@ -58,6 +58,7 @@ BlurEffect::BlurEffect()
XDeleteProperty
(
display
(),
rootWindow
(),
net_wm_blur_region
);
}
connect
(
effects
,
SIGNAL
(
windowAdded
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowAdded
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
BlurEffect
::~
BlurEffect
()
...
...
@@ -112,7 +113,7 @@ void BlurEffect::slotWindowAdded(EffectWindow *w)
updateBlurRegion
(
w
);
}
void
BlurEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
atom
)
void
BlurEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
atom
)
{
if
(
w
&&
atom
==
net_wm_blur_region
)
updateBlurRegion
(
w
);
...
...
effects/blur/blur.h
View file @
640fdc7b
...
...
@@ -41,13 +41,13 @@ public:
static
bool
supported
();
void
reconfigure
(
ReconfigureFlags
flags
);
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
void
paintScreen
(
int
mask
,
QRegion
region
,
ScreenPaintData
&
data
);
void
drawWindow
(
EffectWindow
*
w
,
int
mask
,
QRegion
region
,
WindowPaintData
&
data
);
void
paintEffectFrame
(
EffectFrame
*
frame
,
QRegion
region
,
double
opacity
,
double
frameOpacity
);
public
Q_SLOTS
:
void
slotWindowAdded
(
EffectWindow
*
w
);
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
atom
);
private:
QRect
expand
(
const
QRect
&
rect
)
const
;
...
...
effects/highlightwindow/highlightwindow.cpp
View file @
640fdc7b
...
...
@@ -41,6 +41,7 @@ HighlightWindowEffect::HighlightWindowEffect()
connect
(
effects
,
SIGNAL
(
windowAdded
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowAdded
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowClosed
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowClosed
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowDeleted
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowDeleted
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
HighlightWindowEffect
::~
HighlightWindowEffect
()
...
...
@@ -115,7 +116,7 @@ void HighlightWindowEffect::slotWindowAdded(EffectWindow* w)
else
m_windowOpacity
[
w
]
=
1.0
;
}
p
ropertyNotify
(
w
,
m_atom
);
// Check initial value
slotP
ropertyNotify
(
w
,
m_atom
);
// Check initial value
}
void
HighlightWindowEffect
::
slotWindowClosed
(
EffectWindow
*
w
)
...
...
@@ -129,7 +130,7 @@ void HighlightWindowEffect::slotWindowDeleted(EffectWindow* w)
m_windowOpacity
.
remove
(
w
);
}
void
HighlightWindowEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
void
HighlightWindowEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
{
if
(
a
!=
m_atom
)
return
;
// Not our atom
...
...
effects/highlightwindow/highlightwindow.h
View file @
640fdc7b
...
...
@@ -37,12 +37,11 @@ public:
virtual
void
prePaintWindow
(
EffectWindow
*
w
,
WindowPrePaintData
&
data
,
int
time
);
virtual
void
paintWindow
(
EffectWindow
*
w
,
int
mask
,
QRegion
region
,
WindowPaintData
&
data
);
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
public
Q_SLOTS
:
void
slotWindowAdded
(
EffectWindow
*
w
);
void
slotWindowClosed
(
EffectWindow
*
w
);
void
slotWindowDeleted
(
EffectWindow
*
w
);
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
atom
);
private:
void
prepareHighlighting
();
...
...
effects/logout/logout.cpp
View file @
640fdc7b
...
...
@@ -63,6 +63,7 @@ LogoutEffect::LogoutEffect()
connect
(
effects
,
SIGNAL
(
windowAdded
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowAdded
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowClosed
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowClosed
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowDeleted
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowDeleted
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
LogoutEffect
::~
LogoutEffect
()
...
...
@@ -366,7 +367,7 @@ void LogoutEffect::renderVignetting()
}
#endif
void
LogoutEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
void
LogoutEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
{
if
(
w
||
a
!=
logoutAtom
)
return
;
// Not our atom
...
...
effects/logout/logout.h
View file @
640fdc7b
...
...
@@ -44,11 +44,11 @@ public:
virtual
void
paintScreen
(
int
mask
,
QRegion
region
,
ScreenPaintData
&
data
);
virtual
void
postPaintScreen
();
virtual
void
paintWindow
(
EffectWindow
*
w
,
int
mask
,
QRegion
region
,
WindowPaintData
&
data
);
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
a
);
public
Q_SLOTS
:
void
slotWindowAdded
(
EffectWindow
*
w
);
void
slotWindowClosed
(
EffectWindow
*
w
);
void
slotWindowDeleted
(
EffectWindow
*
w
);
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
a
);
private:
bool
isLogoutDialog
(
EffectWindow
*
w
);
double
progress
;
// 0-1
...
...
effects/presentwindows/presentwindows.cpp
View file @
640fdc7b
...
...
@@ -106,6 +106,7 @@ PresentWindowsEffect::PresentWindowsEffect()
connect
(
effects
,
SIGNAL
(
tabBoxClosed
()),
this
,
SLOT
(
slotTabBoxClosed
()));
connect
(
effects
,
SIGNAL
(
tabBoxUpdated
()),
this
,
SLOT
(
slotTabBoxUpdated
()));
connect
(
effects
,
SIGNAL
(
tabBoxKeyEvent
(
QKeyEvent
*
)),
this
,
SLOT
(
slotTabBoxKeyEvent
(
QKeyEvent
*
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
PresentWindowsEffect
::~
PresentWindowsEffect
()
...
...
@@ -741,7 +742,7 @@ void PresentWindowsEffect::slotTabBoxKeyEvent(QKeyEvent* event)
//-----------------------------------------------------------------------------
// Atom handling
void
PresentWindowsEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
void
PresentWindowsEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
{
if
(
!
w
||
(
a
!=
m_atomDesktop
&&
a
!=
m_atomWindows
))
return
;
// Not our atom
...
...
effects/presentwindows/presentwindows.h
View file @
640fdc7b
...
...
@@ -106,9 +106,6 @@ public:
virtual
void
windowInputMouseEvent
(
Window
w
,
QEvent
*
e
);
virtual
void
grabbedKeyboardEvent
(
QKeyEvent
*
e
);
// atoms
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
enum
{
LayoutNatural
,
LayoutRegularGrid
,
LayoutFlexibleGrid
};
// Layout modes
enum
PresentWindowsMode
{
ModeAllDesktops
,
// Shows windows of all desktops
...
...
@@ -160,6 +157,8 @@ public slots:
void
slotTabBoxClosed
();
void
slotTabBoxUpdated
();
void
slotTabBoxKeyEvent
(
QKeyEvent
*
event
);
// atoms
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
atom
);
private
slots
:
void
closeWindow
();
...
...
effects/slidingpopups/slidingpopups.cpp
View file @
640fdc7b
...
...
@@ -41,6 +41,7 @@ SlidingPopupsEffect::SlidingPopupsEffect()
connect
(
effects
,
SIGNAL
(
windowAdded
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowAdded
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowClosed
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowClosed
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowDeleted
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowDeleted
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
SlidingPopupsEffect
::~
SlidingPopupsEffect
()
...
...
@@ -136,7 +137,7 @@ void SlidingPopupsEffect::postPaintWindow(EffectWindow* w)
void
SlidingPopupsEffect
::
slotWindowAdded
(
EffectWindow
*
w
)
{
p
ropertyNotify
(
w
,
mAtom
);
slotP
ropertyNotify
(
w
,
mAtom
);
if
(
w
->
isOnCurrentDesktop
()
&&
mWindowsData
.
contains
(
w
))
{
mAppearingWindows
[
w
].
setDuration
(
mWindowsData
[
w
].
fadeInDuration
);
mAppearingWindows
[
w
].
setProgress
(
0.0
);
...
...
@@ -151,7 +152,7 @@ void SlidingPopupsEffect::slotWindowAdded(EffectWindow *w)
void
SlidingPopupsEffect
::
slotWindowClosed
(
EffectWindow
*
w
)
{
p
ropertyNotify
(
w
,
mAtom
);
slotP
ropertyNotify
(
w
,
mAtom
);
if
(
w
->
isOnCurrentDesktop
()
&&
!
w
->
isMinimized
()
&&
mWindowsData
.
contains
(
w
))
{
w
->
refWindow
();
mAppearingWindows
.
remove
(
w
);
...
...
@@ -174,7 +175,7 @@ void SlidingPopupsEffect::slotWindowDeleted(EffectWindow* w)
effects
->
addRepaint
(
w
->
geometry
());
}
void
SlidingPopupsEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
void
SlidingPopupsEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
{
if
(
!
w
||
a
!=
mAtom
)
return
;
...
...
effects/slidingpopups/slidingpopups.h
View file @
640fdc7b
...
...
@@ -39,12 +39,12 @@ public:
virtual
void
paintWindow
(
EffectWindow
*
w
,
int
mask
,
QRegion
region
,
WindowPaintData
&
data
);
virtual
void
postPaintWindow
(
EffectWindow
*
w
);
// TODO react also on virtual desktop changes
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
a
);
public
Q_SLOTS
:
void
slotWindowAdded
(
EffectWindow
*
c
);
void
slotWindowClosed
(
EffectWindow
*
c
);
void
slotWindowDeleted
(
EffectWindow
*
w
);
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
a
);
private:
enum
Position
{
West
=
0
,
...
...
effects/taskbarthumbnail/taskbarthumbnail.cpp
View file @
640fdc7b
...
...
@@ -46,6 +46,7 @@ TaskbarThumbnailEffect::TaskbarThumbnailEffect()
connect
(
effects
,
SIGNAL
(
windowAdded
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowAdded
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowDeleted
(
EffectWindow
*
)),
this
,
SLOT
(
slotWindowDeleted
(
EffectWindow
*
)));
connect
(
effects
,
SIGNAL
(
windowDamaged
(
EffectWindow
*
,
QRect
)),
this
,
SLOT
(
slotWindowDamaged
(
EffectWindow
*
,
QRect
)));
connect
(
effects
,
SIGNAL
(
propertyNotify
(
EffectWindow
*
,
long
)),
this
,
SLOT
(
slotPropertyNotify
(
EffectWindow
*
,
long
)));
}
TaskbarThumbnailEffect
::~
TaskbarThumbnailEffect
()
...
...
@@ -123,7 +124,7 @@ void TaskbarThumbnailEffect::slotWindowDamaged(EffectWindow* w, const QRect& dam
void
TaskbarThumbnailEffect
::
slotWindowAdded
(
EffectWindow
*
w
)
{
p
ropertyNotify
(
w
,
atom
);
// read initial value
slotP
ropertyNotify
(
w
,
atom
);
// read initial value
}
void
TaskbarThumbnailEffect
::
slotWindowDeleted
(
EffectWindow
*
w
)
...
...
@@ -131,7 +132,7 @@ void TaskbarThumbnailEffect::slotWindowDeleted(EffectWindow* w)
thumbnails
.
remove
(
w
);
}
void
TaskbarThumbnailEffect
::
p
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
void
TaskbarThumbnailEffect
::
slotP
ropertyNotify
(
EffectWindow
*
w
,
long
a
)
{
if
(
!
w
||
a
!=
atom
)
return
;
...
...
effects/taskbarthumbnail/taskbarthumbnail.h
View file @
640fdc7b
...
...
@@ -38,12 +38,12 @@ public:
virtual
void
prePaintScreen
(
ScreenPrePaintData
&
data
,
int
time
);
virtual
void
prePaintWindow
(
EffectWindow
*
w
,
WindowPrePaintData
&
data
,
int
time
);
virtual
void
paintWindow
(
EffectWindow
*
w
,
int
mask
,
QRegion
region
,
WindowPaintData
&
data
);
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
public
Q_SLOTS
:
void
slotWindowAdded
(
EffectWindow
*
w
);
void
slotWindowDeleted
(
EffectWindow
*
w
);
void
slotWindowDamaged
(
EffectWindow
*
w
,
const
QRect
&
damage
);
void
slotPropertyNotify
(
EffectWindow
*
w
,
long
atom
);
private:
struct
Data
{
Window
window
;
// thumbnail of this window
...
...
events.cpp
View file @
640fdc7b
...
...
@@ -301,9 +301,9 @@ bool Workspace::workspaceEvent(XEvent * e)
}
// We want to pass root window property events to effects
if
(
e
->
type
==
PropertyNotify
&&
e
->
xany
.
window
==
rootWindow
()
&&
effects
)
{
if
(
e
->
type
==
PropertyNotify
&&
e
->
xany
.
window
==
rootWindow
())
{
XPropertyEvent
*
re
=
&
e
->
xproperty
;
static_cast
<
EffectsHandlerImpl
*
>
(
effects
)
->
propertyNotify
(
NULL
,
re
->
atom
);
emit
propertyNotify
(
re
->
atom
);
}
}
if
(
movingClient
!=
NULL
&&
movingClient
->
moveResizeGrabWindow
()
==
e
->
xany
.
window
...
...
@@ -1691,8 +1691,7 @@ void Toplevel::propertyNotifyEvent(XPropertyEvent* e)
getWindowRole
();
break
;
}
if
(
effects
)
static_cast
<
EffectsHandlerImpl
*
>
(
effects
)
->
propertyNotify
(
effectWindow
(),
e
->
atom
);
emit
propertyNotify
(
this
,
e
->
atom
);
}
// ****************************************
...
...
libkwineffects/kwineffects.cpp
View file @
640fdc7b
...
...
@@ -131,10 +131,6 @@ void Effect::grabbedKeyboardEvent(QKeyEvent*)
{
}
void
Effect
::
propertyNotify
(
EffectWindow
*
,
long
)
{
}
bool
Effect
::
borderActivated
(
ElectricBorder
)
{
return
false
;
...
...
libkwineffects/kwineffects.h
View file @
640fdc7b
...
...
@@ -444,14 +444,6 @@ public:
virtual
void
windowMoveResizeGeometryUpdate
(
EffectWindow
*
c
,
const
QRect
&
geometry
);
virtual
void
windowInputMouseEvent
(
Window
w
,
QEvent
*
e
);
virtual
void
grabbedKeyboardEvent
(
QKeyEvent
*
e
);
/**
Receives events registered for using EffectsHandler::registerPropertyType().
Use readProperty() to get the property data.
Note that the property may be already set on the window, so doing the same
processing from windowAdded() (e.g. simply calling propertyNotify() from it)
is usually needed.
*/
virtual
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
virtual
bool
borderActivated
(
ElectricBorder
border
);
...
...
@@ -960,6 +952,17 @@ Q_SIGNALS:
void
mouseChanged
(
const
QPoint
&
pos
,
const
QPoint
&
oldpos
,
Qt
::
MouseButtons
buttons
,
Qt
::
MouseButtons
oldbuttons
,
Qt
::
KeyboardModifiers
modifiers
,
Qt
::
KeyboardModifiers
oldmodifiers
);
/**
* Receives events registered for using @link registerPropertyType.
* Use readProperty() to get the property data.
* Note that the property may be already set on the window, so doing the same
* processing from windowAdded() (e.g. simply calling propertyNotify() from it)
* is usually needed.
* @param w The window whose property changed, is @c null if it is a root window property
* @param atom The property
* @since 4.7
*/
void
propertyNotify
(
EffectWindow
*
w
,
long
atom
);
protected:
QVector
<
EffectPair
>
loaded_effects
;
...
...
toplevel.h
View file @
640fdc7b
...
...
@@ -138,6 +138,7 @@ public:
signals:
void
opacityChanged
(
KWin
::
Toplevel
*
toplevel
,
qreal
oldOpacity
);
void
damaged
(
KWin
::
Toplevel
*
toplevel
,
const
QRect
&
damage
);
void
propertyNotify
(
KWin
::
Toplevel
*
toplevel
,
long
a
);
protected:
virtual
~
Toplevel
();
...
...
workspace.h
View file @
640fdc7b
...
...
@@ -932,6 +932,7 @@ signals:
void
mouseChanged
(
const
QPoint
&
pos
,
const
QPoint
&
oldpos
,
Qt
::
MouseButtons
buttons
,
Qt
::
MouseButtons
oldbuttons
,
Qt
::
KeyboardModifiers
modifiers
,
Qt
::
KeyboardModifiers
oldmodifiers
);
void
propertyNotify
(
long
a
);
private:
void
init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment