#include "x11window.h"
#include "core/output.h"
#include "atoms.h"
#include "client_machine.h"
#include "compositor.h"
#include "cursor.h"
#include "decorations/decoratedclient.h"
#include "decorations/decorationbridge.h"
#include "effect/effecthandler.h"
#include "focuschain.h"
#include "group.h"
#include "killprompt.h"
#include "netinfo.h"
#include "placement.h"
#include "scene/surfaceitem_x11.h"
#include "scene/windowitem.h"
#include "screenedge.h"
#include "shadow.h"
#include "virtualdesktops.h"
#include "wayland/surface.h"
#include "wayland_server.h"
#include "workspace.h"
#include <KDecoration2/DecoratedClient>
#include <KDecoration2/Decoration>
#include <KLocalizedString>
#include <KStartupInfo>
#include <KX11Extras>
#include <QApplication>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QMouseEvent>
#include <QPainter>
#include <QProcess>
#include <xcb/xcb_icccm.h>
#include <unistd.h>
#include <cmath>
#include <csignal>
#include "moc_x11window.cpp"
Go to the source code of this file.
◆ ASPECT_CHECK_GROW_H
#define ASPECT_CHECK_GROW_H |
Value: if (max_aspect_w * h < max_aspect_h * w) { \
int delta = int(w * max_aspect_h / max_aspect_w - h) / height_inc * height_inc; \
if (h + delta <= max_height) \
h += delta; \
}
◆ ASPECT_CHECK_GROW_W
#define ASPECT_CHECK_GROW_W |
Value: if (min_aspect_w * h > min_aspect_h * w) { \
int delta = int(min_aspect_w * h / min_aspect_h - w) / width_inc * width_inc; \
if (w + delta <= max_width) \
w += delta; \
}
◆ ASPECT_CHECK_SHRINK_H_GROW_W
#define ASPECT_CHECK_SHRINK_H_GROW_W |
Value: if (min_aspect_w * h > min_aspect_h * w) { \
int delta = int(h - w * min_aspect_h / min_aspect_w) / height_inc * height_inc; \
if (h - delta >= min_height) \
h -= delta; \
else { \
int delta = int(min_aspect_w * h / min_aspect_h - w) / width_inc * width_inc; \
if (w + delta <= max_width) \
w += delta; \
} \
}
◆ ASPECT_CHECK_SHRINK_W_GROW_H
#define ASPECT_CHECK_SHRINK_W_GROW_H |
Value: if (max_aspect_w * h < max_aspect_h * w) { \
int delta = int(w - max_aspect_w * h / max_aspect_h) / width_inc * width_inc; \
if (w - delta >= min_width) \
w -= delta; \
else { \
int delta = int(w * max_aspect_h / max_aspect_w - h) / height_inc * height_inc; \
if (h + delta <= max_height) \
h += delta; \
} \
}