Do not include utils.h in xcbutils.h

Only needed for ScopedCPointer which can be defined in both utils and
xcbutils.h.

Not having utils.h in xcbutils.h makes it easier to have unit tests use
xcbutils.h as it removes the dependencies.
This commit is contained in:
Martin Gräßlin 2014-04-17 17:22:14 +02:00
parent 9d01ed16be
commit 6d64113ed4
4 changed files with 5 additions and 2 deletions

View file

@ -41,6 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace KWin {
class Client;
class ScreenEdges;
class Edge : public QObject

View file

@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// own
#include "tabboxhandler.h"
#include <config-kwin.h>
#include <kwinglobals.h>
#include "xcbutils.h"
// tabbox

View file

@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
#include "xcbutils.h"
#include "utils.h"
// Qt
#include <QDebug>
// xcb

View file

@ -21,10 +21,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KWIN_XCB_UTILS_H
#include <kwinglobals.h>
#include "utils.h"
#include <QRect>
#include <QRegion>
#include <QScopedPointer>
#include <QVector>
#include <xcb/xcb.h>
@ -35,6 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace KWin {
template <typename T> using ScopedCPointer = QScopedPointer<T, QScopedPointerPodDeleter>;
namespace Xcb {
typedef xcb_window_t WindowId;