Adjust methods in KWinSelectionOwner to changes in KF5
This commit is contained in:
parent
2b80b3b398
commit
ea5c23d530
2 changed files with 4 additions and 4 deletions
4
main.cpp
4
main.cpp
|
@ -125,7 +125,7 @@ void KWinSelectionOwner::getAtoms()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void KWinSelectionOwner::replyTargets(Atom property_P, Window requestor_P)
|
void KWinSelectionOwner::replyTargets(xcb_atom_t property_P, xcb_window_t requestor_P)
|
||||||
{
|
{
|
||||||
KSelectionOwner::replyTargets(property_P, requestor_P);
|
KSelectionOwner::replyTargets(property_P, requestor_P);
|
||||||
Atom atoms[ 1 ] = { xa_version };
|
Atom atoms[ 1 ] = { xa_version };
|
||||||
|
@ -134,7 +134,7 @@ void KWinSelectionOwner::replyTargets(Atom property_P, Window requestor_P)
|
||||||
reinterpret_cast< unsigned char* >(atoms), 1);
|
reinterpret_cast< unsigned char* >(atoms), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool KWinSelectionOwner::genericReply(Atom target_P, Atom property_P, Window requestor_P)
|
bool KWinSelectionOwner::genericReply(xcb_atom_t target_P, xcb_atom_t property_P, xcb_window_t requestor_P)
|
||||||
{
|
{
|
||||||
if (target_P == xa_version) {
|
if (target_P == xa_version) {
|
||||||
long version[] = { 2, 0 };
|
long version[] = { 2, 0 };
|
||||||
|
|
4
main.h
4
main.h
|
@ -35,8 +35,8 @@ class KWinSelectionOwner
|
||||||
public:
|
public:
|
||||||
explicit KWinSelectionOwner(int screen);
|
explicit KWinSelectionOwner(int screen);
|
||||||
protected:
|
protected:
|
||||||
virtual bool genericReply(Atom target, Atom property, Window requestor);
|
virtual bool genericReply(xcb_atom_t target, xcb_atom_t property, xcb_window_t requestor);
|
||||||
virtual void replyTargets(Atom property, Window requestor);
|
virtual void replyTargets(xcb_atom_t property, xcb_window_t requestor);
|
||||||
virtual void getAtoms();
|
virtual void getAtoms();
|
||||||
private:
|
private:
|
||||||
Atom make_selection_atom(int screen);
|
Atom make_selection_atom(int screen);
|
||||||
|
|
Loading…
Reference in a new issue