#include "workspace.h"
#include "opengl/glplatform.h"
#include "core/output.h"
#include "appmenu.h"
#include "atoms.h"
#include "core/outputbackend.h"
#include "core/outputconfiguration.h"
#include "cursor.h"
#include "dbusinterface.h"
#include "effect/effecthandler.h"
#include "focuschain.h"
#include "group.h"
#include "input.h"
#include "internalwindow.h"
#include "killwindow.h"
#include "moving_client_x11_filter.h"
#include "netinfo.h"
#include "outline.h"
#include "placement.h"
#include "pluginmanager.h"
#include "rules.h"
#include "screenedge.h"
#include "scripting/scripting.h"
#include "syncalarmx11filter.h"
#include "tiles/tilemanager.h"
#include "x11window.h"
#include "decorations/decorationbridge.h"
#include "dpmsinputeventfilter.h"
#include "lidswitchtracker.h"
#include "main.h"
#include "outputconfigurationstore.h"
#include "placeholderinputeventfilter.h"
#include "placeholderoutput.h"
#include "placementtracker.h"
#include "tabletmodemanager.h"
#include "useractions.h"
#include "utils/kernel.h"
#include "utils/orientationsensor.h"
#include "utils/xcbutils.h"
#include "virtualdesktops.h"
#include "was_user_interaction_x11_filter.h"
#include "wayland_server.h"
#include <KConfig>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KStartupInfo>
#include <QCryptographicHash>
#include <QDBusConnection>
#include <QDBusPendingCall>
#include <QMetaProperty>
#include <xcb/xinerama.h>
#include "moc_workspace.cpp"
Go to the source code of this file.
◆ SNAP_BORDER_BOTTOM
#define SNAP_BORDER_BOTTOM |
Value: if ((sOWO ? (newry > ymax) : true) && (std::abs(ymax - newry) < deltaY)) { \
deltaY = std::abs(ymax - newcy); \
newry = ymax; \
}
◆ SNAP_BORDER_LEFT
Value: if ((sOWO ? (newcx < xmin) : true) && (std::abs(xmin - newcx) < deltaX)) { \
deltaX = std::abs(xmin - newcx); \
newcx = xmin; \
}
◆ SNAP_BORDER_RIGHT
#define SNAP_BORDER_RIGHT |
Value: if ((sOWO ? (newrx > xmax) : true) && (std::abs(xmax - newrx) < deltaX)) { \
deltaX = std::abs(xmax - newrx); \
newrx = xmax; \
}
◆ SNAP_BORDER_TOP
Value: if ((sOWO ? (newcy < ymin) : true) && (std::abs(ymin - newcy) < deltaY)) { \
deltaY = std::abs(ymin - newcy); \
newcy = ymin; \
}
◆ SNAP_WINDOW_BOTTOM
#define SNAP_WINDOW_BOTTOM |
Value: if ((sOWO ? (newry > ly) : true) \
&& (std::abs(ly - newry) < deltaY)) { \
deltaY = std::abs(ly - newry); \
newry = ly; \
}
◆ SNAP_WINDOW_C_BOTTOM
#define SNAP_WINDOW_C_BOTTOM |
Value: if ((sOWO ? (newry > lry) : true) \
&& (newcx == lrx || newrx == lx) \
&& std::abs(lry - newry) < deltaY) { \
deltaY = std::abs(lry - newry); \
newry = lry; \
}
◆ SNAP_WINDOW_C_LEFT
#define SNAP_WINDOW_C_LEFT |
Value: if ((sOWO ? (newcx < lx) : true) \
&& (newcy == lry || newry == ly) \
&& std::abs(lx - newcx) < deltaX) { \
deltaX = std::abs(lx - newcx); \
newcx = lx; \
}
◆ SNAP_WINDOW_C_RIGHT
#define SNAP_WINDOW_C_RIGHT |
Value: if ((sOWO ? (newrx > lrx) : true) \
&& (newcy == lry || newry == ly) \
&& std::abs(lrx - newrx) < deltaX) { \
deltaX = std::abs(lrx - newrx); \
newrx = lrx; \
}
◆ SNAP_WINDOW_C_TOP
#define SNAP_WINDOW_C_TOP |
Value: if ((sOWO ? (newcy < ly) : true) \
&& (newcx == lrx || newrx == lx) \
&& std::abs(ly - newcy) < deltaY) { \
deltaY = std::abs(ly - newcy); \
newcy = ly; \
}
◆ SNAP_WINDOW_LEFT
Value: if ((sOWO ? (newcx < lrx) : true) \
&& (std::abs(lrx - newcx) < deltaX)) { \
deltaX = std::abs(lrx - newcx); \
newcx = lrx; \
}
◆ SNAP_WINDOW_RIGHT
#define SNAP_WINDOW_RIGHT |
Value: if ((sOWO ? (newrx > lx) : true) \
&& (std::abs(lx - newrx) < deltaX)) { \
deltaX = std::abs(lx - newrx); \
newrx = lx; \
}
◆ SNAP_WINDOW_TOP
Value: if ((sOWO ? (newcy < lry) : true) \
&& (std::abs(lry - newcy) < deltaY)) { \
deltaY = std::abs(lry - newcy); \
newcy = lry; \
}
◆ WITHIN_HEIGHT
#define WITHIN_HEIGHT (((newcy <= lry) && (newcy >= ly)) || ((newry >= ly) && (newry <= lry)) || ((newcy <= ly) && (newry >= lry))) |
◆ WITHIN_WIDTH
#define WITHIN_WIDTH (((cx <= lrx) && (cx >= lx)) || ((rx >= lx) && (rx <= lrx)) || ((cx <= lx) && (rx >= lrx))) |