From ea5c23d530c0c1c2d153e2510c974a8f6b6befa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 23 Jul 2013 06:43:09 +0200 Subject: [PATCH] Adjust methods in KWinSelectionOwner to changes in KF5 --- main.cpp | 4 ++-- main.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.cpp b/main.cpp index 5304e0c4b7..3a5e86c3d0 100644 --- a/main.cpp +++ b/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); Atom atoms[ 1 ] = { xa_version }; @@ -134,7 +134,7 @@ void KWinSelectionOwner::replyTargets(Atom property_P, Window requestor_P) 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) { long version[] = { 2, 0 }; diff --git a/main.h b/main.h index c2bf64ee06..4c317b9f8e 100644 --- a/main.h +++ b/main.h @@ -35,8 +35,8 @@ class KWinSelectionOwner public: explicit KWinSelectionOwner(int screen); protected: - virtual bool genericReply(Atom target, Atom property, Window requestor); - virtual void replyTargets(Atom property, Window requestor); + virtual bool genericReply(xcb_atom_t target, xcb_atom_t property, xcb_window_t requestor); + virtual void replyTargets(xcb_atom_t property, xcb_window_t requestor); virtual void getAtoms(); private: Atom make_selection_atom(int screen);