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:
parent
9d01ed16be
commit
6d64113ed4
4 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue