2015-03-04 11:21:10 +03:00
|
|
|
/********************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2015 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
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 "shell_client.h"
|
2015-05-27 11:16:46 +03:00
|
|
|
#include "composite.h"
|
2015-03-04 11:21:10 +03:00
|
|
|
#include "deleted.h"
|
2015-05-27 11:16:46 +03:00
|
|
|
#include "screens.h"
|
2015-03-04 11:21:10 +03:00
|
|
|
#include "wayland_server.h"
|
2015-05-27 11:16:46 +03:00
|
|
|
#include "workspace.h"
|
2015-03-16 11:14:04 +03:00
|
|
|
#include "virtualdesktops.h"
|
2015-05-19 13:03:53 +03:00
|
|
|
#include "workspace.h"
|
2015-03-04 11:21:10 +03:00
|
|
|
|
2015-05-18 15:51:40 +03:00
|
|
|
#include <KWayland/Client/surface.h>
|
2015-03-04 11:21:10 +03:00
|
|
|
#include <KWayland/Server/shell_interface.h>
|
|
|
|
#include <KWayland/Server/surface_interface.h>
|
|
|
|
#include <KWayland/Server/buffer_interface.h>
|
|
|
|
|
2015-05-18 15:51:40 +03:00
|
|
|
#include <QWindow>
|
|
|
|
|
2015-03-04 11:21:10 +03:00
|
|
|
using namespace KWayland::Server;
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
ShellClient::ShellClient(ShellSurfaceInterface *surface)
|
2015-03-16 11:14:04 +03:00
|
|
|
: AbstractClient()
|
2015-03-04 11:21:10 +03:00
|
|
|
, m_shellSurface(surface)
|
|
|
|
{
|
|
|
|
setSurface(surface->surface());
|
2015-05-18 15:51:40 +03:00
|
|
|
findInternalWindow();
|
|
|
|
createWindowId();
|
2015-03-04 11:21:10 +03:00
|
|
|
setupCompositing();
|
|
|
|
if (surface->surface()->buffer()) {
|
|
|
|
setReadyForPainting();
|
2015-06-03 22:19:00 +03:00
|
|
|
m_unmapped = false;
|
2015-03-04 11:21:10 +03:00
|
|
|
m_clientSize = surface->surface()->buffer()->size();
|
|
|
|
} else {
|
|
|
|
ready_for_painting = false;
|
|
|
|
}
|
2015-05-18 15:51:40 +03:00
|
|
|
if (m_internalWindow) {
|
2015-05-20 09:27:48 +03:00
|
|
|
updateInternalWindowGeometry();
|
2015-05-18 15:51:40 +03:00
|
|
|
} else {
|
|
|
|
setGeometry(QRect(QPoint(0, 0), m_clientSize));
|
|
|
|
}
|
2015-03-04 11:21:10 +03:00
|
|
|
|
2015-03-16 11:14:04 +03:00
|
|
|
setDesktop(VirtualDesktopManager::self()->current());
|
|
|
|
|
2015-03-04 11:21:10 +03:00
|
|
|
connect(surface->surface(), &SurfaceInterface::sizeChanged, this,
|
|
|
|
[this] {
|
|
|
|
m_clientSize = m_shellSurface->surface()->buffer()->size();
|
2015-05-18 15:50:10 +03:00
|
|
|
setGeometry(QRect(geom.topLeft(), m_clientSize));
|
2015-05-21 14:30:55 +03:00
|
|
|
discardWindowPixmap();
|
2015-03-04 11:21:10 +03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
connect(surface, &ShellSurfaceInterface::destroyed, this, &ShellClient::destroyClient);
|
2015-06-03 22:19:00 +03:00
|
|
|
connect(surface->surface(), &SurfaceInterface::unmapped, this, &ShellClient::unmap);
|
2015-05-20 15:40:32 +03:00
|
|
|
connect(surface, &ShellSurfaceInterface::titleChanged, this, &ShellClient::captionChanged);
|
2015-05-19 13:03:53 +03:00
|
|
|
|
|
|
|
connect(surface, &ShellSurfaceInterface::fullscreenChanged, this, &ShellClient::clientFullScreenChanged);
|
2015-06-07 04:28:38 +03:00
|
|
|
connect(surface, &ShellSurfaceInterface::maximizedChanged, this,
|
|
|
|
[this] (bool maximized) {
|
|
|
|
maximize(maximized ? MaximizeFull : MaximizeRestore);
|
|
|
|
}
|
|
|
|
);
|
2015-03-04 11:21:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
ShellClient::~ShellClient() = default;
|
|
|
|
|
|
|
|
void ShellClient::destroyClient()
|
|
|
|
{
|
2015-04-30 14:48:59 +03:00
|
|
|
m_closing = true;
|
2015-03-04 11:21:10 +03:00
|
|
|
Deleted *del = Deleted::create(this);
|
|
|
|
emit windowClosed(this, del);
|
|
|
|
waylandServer()->removeClient(this);
|
|
|
|
|
|
|
|
del->unrefWindow();
|
|
|
|
m_shellSurface = nullptr;
|
|
|
|
deleteClient(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::deleteClient(ShellClient *c)
|
|
|
|
{
|
|
|
|
delete c;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStringList ShellClient::activities() const
|
|
|
|
{
|
|
|
|
// TODO: implement
|
|
|
|
return QStringList();
|
|
|
|
}
|
|
|
|
|
|
|
|
QPoint ShellClient::clientPos() const
|
|
|
|
{
|
|
|
|
return QPoint(0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
QSize ShellClient::clientSize() const
|
|
|
|
{
|
|
|
|
// TODO: connect for changes
|
|
|
|
return m_clientSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::debug(QDebug &stream) const
|
|
|
|
{
|
|
|
|
// TODO: implement
|
|
|
|
Q_UNUSED(stream)
|
|
|
|
}
|
|
|
|
|
|
|
|
Layer ShellClient::layer() const
|
|
|
|
{
|
2015-05-19 13:03:53 +03:00
|
|
|
// TODO: implement the rest
|
|
|
|
if (isFullScreen() && isActive())
|
|
|
|
return ActiveLayer;
|
2015-03-04 11:21:10 +03:00
|
|
|
return KWin::NormalLayer;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::shouldUnredirect() const
|
|
|
|
{
|
|
|
|
// TODO: unredirect for fullscreen
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
QRect ShellClient::transparentRect() const
|
|
|
|
{
|
|
|
|
// TODO: implement
|
|
|
|
return QRect();
|
|
|
|
}
|
|
|
|
|
|
|
|
NET::WindowType ShellClient::windowType(bool direct, int supported_types) const
|
|
|
|
{
|
|
|
|
// TODO: implement
|
|
|
|
Q_UNUSED(direct)
|
|
|
|
Q_UNUSED(supported_types)
|
|
|
|
return NET::Normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
double ShellClient::opacity() const
|
|
|
|
{
|
|
|
|
return 1.0;
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:13:19 +03:00
|
|
|
void ShellClient::setOpacity(double opacity)
|
|
|
|
{
|
|
|
|
Q_UNUSED(opacity)
|
|
|
|
}
|
|
|
|
|
2015-03-04 11:21:10 +03:00
|
|
|
void ShellClient::addDamage(const QRegion &damage)
|
|
|
|
{
|
|
|
|
if (m_shellSurface->surface()->buffer()->size().isValid()) {
|
|
|
|
m_clientSize = m_shellSurface->surface()->buffer()->size();
|
2015-05-19 13:03:53 +03:00
|
|
|
QPoint position = geom.topLeft();
|
|
|
|
if (m_positionAfterResize.isValid()) {
|
2015-06-07 03:38:53 +03:00
|
|
|
addLayerRepaint(geometry());
|
2015-05-19 13:03:53 +03:00
|
|
|
position = m_positionAfterResize.point();
|
|
|
|
m_positionAfterResize.clear();
|
|
|
|
}
|
|
|
|
setGeometry(QRect(position, m_clientSize));
|
2015-03-04 11:21:10 +03:00
|
|
|
}
|
2015-06-01 17:25:21 +03:00
|
|
|
setDepth(m_shellSurface->surface()->buffer()->hasAlphaChannel() ? 32 : 24);
|
2015-05-28 09:27:34 +03:00
|
|
|
setReadyForPainting();
|
2015-06-03 22:19:00 +03:00
|
|
|
m_unmapped = false;
|
2015-03-04 11:21:10 +03:00
|
|
|
Toplevel::addDamage(damage);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setGeometry(const QRect &rect)
|
|
|
|
{
|
|
|
|
if (geom == rect) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
const QRect old = geom;
|
|
|
|
geom = rect;
|
|
|
|
emit geometryChanged();
|
|
|
|
emit geometryShapeChanged(this, old);
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray ShellClient::windowRole() const
|
|
|
|
{
|
|
|
|
return QByteArray();
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:14:04 +03:00
|
|
|
bool ShellClient::belongsToSameApplication(const AbstractClient *other, bool active_hack) const
|
|
|
|
{
|
|
|
|
Q_UNUSED(active_hack)
|
|
|
|
if (auto s = other->surface()) {
|
|
|
|
return s->client() == surface()->client();
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::blockActivityUpdates(bool b)
|
|
|
|
{
|
|
|
|
Q_UNUSED(b)
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ShellClient::caption(bool full, bool stripped) const
|
|
|
|
{
|
|
|
|
Q_UNUSED(full)
|
|
|
|
Q_UNUSED(stripped)
|
2015-05-20 15:40:32 +03:00
|
|
|
return m_shellSurface->title();
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::checkWorkspacePosition(QRect oldGeometry, int oldDesktop)
|
|
|
|
{
|
|
|
|
Q_UNUSED(oldGeometry)
|
|
|
|
Q_UNUSED(oldDesktop)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::closeWindow()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
AbstractClient *ShellClient::findModal(bool allow_itself)
|
|
|
|
{
|
|
|
|
Q_UNUSED(allow_itself)
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isCloseable() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-05-21 16:59:27 +03:00
|
|
|
bool ShellClient::isFullScreenable() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:14:04 +03:00
|
|
|
bool ShellClient::isFullScreen() const
|
|
|
|
{
|
2015-05-19 13:03:53 +03:00
|
|
|
return m_shellSurface->isFullscreen();
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isMaximizable() const
|
|
|
|
{
|
2015-06-07 04:28:38 +03:00
|
|
|
return true;
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isMinimizable() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isMovable() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isMovableAcrossScreens() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isResizable() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::isShown(bool shaded_is_shown) const
|
|
|
|
{
|
|
|
|
Q_UNUSED(shaded_is_shown)
|
2015-06-03 22:19:00 +03:00
|
|
|
return !m_closing && !m_unmapped;
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
2015-06-07 04:28:38 +03:00
|
|
|
void ShellClient::maximize(MaximizeMode mode)
|
2015-03-16 11:14:04 +03:00
|
|
|
{
|
2015-06-07 04:28:38 +03:00
|
|
|
if (m_maximizeMode == mode) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// TODO: check rules
|
|
|
|
StackingUpdatesBlocker blocker(workspace());
|
|
|
|
const MaximizeMode oldMode = m_maximizeMode;
|
|
|
|
m_maximizeMode = mode;
|
|
|
|
|
|
|
|
if (m_maximizeMode == MaximizeFull) {
|
|
|
|
m_geomMaximizeRestore = geometry();
|
|
|
|
requestGeometry(workspace()->clientArea(MaximizeArea, this));
|
|
|
|
workspace()->raiseClient(this);
|
|
|
|
} else {
|
|
|
|
if (m_geomMaximizeRestore.isValid()) {
|
|
|
|
requestGeometry(m_geomMaximizeRestore);
|
|
|
|
} else {
|
|
|
|
requestGeometry(workspace()->clientArea(PlacementArea, this));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (oldMode != maximizeMode()) {
|
|
|
|
emit clientMaximizedStateChanged(this, m_maximizeMode);
|
|
|
|
const bool set = m_maximizeMode == MaximizeFull;
|
|
|
|
emit clientMaximizedStateChanged(this, set, set);
|
|
|
|
}
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
MaximizeMode ShellClient::maximizeMode() const
|
|
|
|
{
|
2015-06-07 04:28:38 +03:00
|
|
|
return m_maximizeMode;
|
2015-03-16 11:14:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::noBorder() const
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::performMouseCommand(Options::MouseCommand cmd, const QPoint &globalPos)
|
|
|
|
{
|
|
|
|
Q_UNUSED(cmd)
|
|
|
|
Q_UNUSED(globalPos)
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
const WindowRules *ShellClient::rules() const
|
|
|
|
{
|
|
|
|
static WindowRules s_rules;
|
|
|
|
return &s_rules;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::sendToScreen(int screen)
|
|
|
|
{
|
|
|
|
Q_UNUSED(screen)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setFullScreen(bool set, bool user)
|
|
|
|
{
|
|
|
|
Q_UNUSED(set)
|
|
|
|
Q_UNUSED(user)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setNoBorder(bool set)
|
|
|
|
{
|
|
|
|
Q_UNUSED(set)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setOnAllActivities(bool set)
|
|
|
|
{
|
|
|
|
Q_UNUSED(set)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setQuickTileMode(AbstractClient::QuickTileMode mode, bool keyboard)
|
|
|
|
{
|
|
|
|
Q_UNUSED(mode)
|
|
|
|
Q_UNUSED(keyboard)
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::setShortcut(const QString &cut)
|
|
|
|
{
|
|
|
|
Q_UNUSED(cut)
|
|
|
|
}
|
|
|
|
|
|
|
|
const QKeySequence &ShellClient::shortcut() const
|
|
|
|
{
|
|
|
|
static QKeySequence seq;
|
|
|
|
return seq;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::takeFocus()
|
|
|
|
{
|
|
|
|
setActive(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::updateWindowRules(Rules::Types selection)
|
|
|
|
{
|
|
|
|
Q_UNUSED(selection)
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::userCanSetFullScreen() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::userCanSetNoBorder() const
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ShellClient::wantsInput() const
|
|
|
|
{
|
2015-05-21 11:39:10 +03:00
|
|
|
if (isInternal()) {
|
|
|
|
return false;
|
|
|
|
}
|
2015-03-16 11:14:04 +03:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-05-18 15:51:40 +03:00
|
|
|
void ShellClient::createWindowId()
|
|
|
|
{
|
|
|
|
if (m_internalWindow) {
|
|
|
|
m_windowId = m_internalWindow->winId();
|
2015-05-21 10:59:45 +03:00
|
|
|
} else {
|
|
|
|
m_windowId = waylandServer()->createWindowId(m_shellSurface->surface());
|
2015-05-18 15:51:40 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::findInternalWindow()
|
|
|
|
{
|
|
|
|
if (m_shellSurface->client() != waylandServer()->qtConnection()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
const QWindowList windows = kwinApp()->topLevelWindows();
|
|
|
|
for (QWindow *w: windows) {
|
|
|
|
QScopedPointer<KWayland::Client::Surface> s(KWayland::Client::Surface::fromWindow(w));
|
|
|
|
if (!s) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (s->id() != surface()->id()) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
m_internalWindow = w;
|
2015-05-20 09:27:48 +03:00
|
|
|
connect(m_internalWindow, &QWindow::xChanged, this, &ShellClient::updateInternalWindowGeometry);
|
2015-05-20 09:57:51 +03:00
|
|
|
connect(m_internalWindow, &QWindow::yChanged, this, &ShellClient::updateInternalWindowGeometry);
|
2015-05-18 15:51:40 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-20 09:27:48 +03:00
|
|
|
void ShellClient::updateInternalWindowGeometry()
|
|
|
|
{
|
|
|
|
if (!m_internalWindow) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
setGeometry(m_internalWindow->geometry());
|
|
|
|
}
|
|
|
|
|
2015-05-21 11:31:19 +03:00
|
|
|
bool ShellClient::isInternal() const
|
|
|
|
{
|
|
|
|
return m_shellSurface->client() == waylandServer()->internalConnection() ||
|
|
|
|
m_shellSurface->client() == waylandServer()->qtConnection();
|
|
|
|
}
|
|
|
|
|
2015-05-21 11:46:12 +03:00
|
|
|
xcb_window_t ShellClient::window() const
|
|
|
|
{
|
|
|
|
return windowId();
|
|
|
|
}
|
|
|
|
|
2015-05-19 13:03:53 +03:00
|
|
|
void ShellClient::requestGeometry(const QRect &rect)
|
|
|
|
{
|
|
|
|
m_positionAfterResize.setPoint(rect.topLeft());
|
|
|
|
m_shellSurface->requestSize(rect.size());
|
|
|
|
}
|
|
|
|
|
|
|
|
void ShellClient::clientFullScreenChanged(bool fullScreen)
|
|
|
|
{
|
|
|
|
StackingUpdatesBlocker blocker(workspace());
|
|
|
|
workspace()->updateClientLayer(this); // active fullscreens get different layer
|
|
|
|
|
|
|
|
if (fullScreen) {
|
|
|
|
m_geomFsRestore = geometry();
|
|
|
|
requestGeometry(workspace()->clientArea(FullScreenArea, this));
|
|
|
|
workspace()->raiseClient(this);
|
|
|
|
} else {
|
|
|
|
if (m_geomFsRestore.isValid()) {
|
|
|
|
requestGeometry(m_geomFsRestore);
|
|
|
|
} else {
|
|
|
|
requestGeometry(workspace()->clientArea(MaximizeArea, this));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-27 11:16:46 +03:00
|
|
|
void ShellClient::move(int x, int y, ForceGeometry_t force)
|
|
|
|
{
|
|
|
|
QPoint p(x, y);
|
|
|
|
if (force == NormalGeometrySet && geom.topLeft() == p) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
const QRect oldGeom = visibleRect();
|
|
|
|
geom.moveTopLeft(p);
|
|
|
|
updateWindowRules(Rules::Position);
|
|
|
|
screens()->setCurrent(this);
|
|
|
|
workspace()->updateStackingOrder();
|
|
|
|
if (Compositor::isCreated()) {
|
|
|
|
// TODO: is this really needed here?
|
|
|
|
Compositor::self()->checkUnredirect();
|
|
|
|
}
|
|
|
|
|
|
|
|
addLayerRepaint(oldGeom);
|
|
|
|
addLayerRepaint(visibleRect());
|
|
|
|
emit geometryChanged();
|
|
|
|
}
|
|
|
|
|
2015-05-27 12:48:33 +03:00
|
|
|
void ShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force)
|
|
|
|
{
|
|
|
|
Q_UNUSED(force)
|
|
|
|
QRect area = workspace()->clientArea(WorkArea, this);
|
|
|
|
// don't allow growing larger than workarea
|
|
|
|
if (w > area.width()) {
|
|
|
|
w = area.width();
|
|
|
|
}
|
|
|
|
if (h > area.height()) {
|
|
|
|
h = area.height();
|
|
|
|
}
|
|
|
|
m_shellSurface->requestSize(QSize(w, h));
|
|
|
|
}
|
|
|
|
|
2015-06-03 22:19:00 +03:00
|
|
|
void ShellClient::unmap()
|
|
|
|
{
|
|
|
|
m_unmapped = true;
|
|
|
|
ready_for_painting = false;
|
|
|
|
addWorkspaceRepaint(visibleRect());
|
|
|
|
workspace()->clientHidden(this);
|
|
|
|
}
|
|
|
|
|
2015-03-04 11:21:10 +03:00
|
|
|
}
|