13427 Commits (fe28ca1d8a74e44f42fce2c630cc81fd0394741f)
 

Author SHA1 Message Date
Thomas Lübking 1df2d5979f keep quick maximized w/ size restritions in screen
... bounds
BUG: 348121
REVIEW: 123910
9 years ago
Martin Gräßlin 35abacabc4 [wayland] Handle unmap in ShellClient
Do not destroy the ShellClient when the Surface gets unmapped. Instead
just hide the ShellClient and show it again on the next damage.
9 years ago
Thomas Lübking c4140d6f4e Show autohiding panels instantly
this probably makes sense since it won't
have major impact on the workspace like
switching the VD or entering
presentwindows/desktopgrid would

REVIEW: 123904
9 years ago
Thomas Lübking 12fec3f7f5 Maximize effect: skip crossfadign on user resizes
a) close to pointless
b) the target resolution texture is invalid if the resize effect is enabled (as the window was not actually resized)

REVIEW: 123901
9 years ago
Ivan Čukić e44bffa097 Fixing activities list in the rulewidget
KActivities API is not synchronous anymore. If we want to retrieve
the activities, we should do it when we actually get the data.
We are listening to the service status changes and activity list changes.

REVIEW: 123869
BUG: 347732
9 years ago
Martin Gräßlin 1e16ab2567 Set Toplevel::m_surface to nullptr if SurfaceInterface gets destroyed
When minimizing an Xwayland client the Xwayland server destroys the
Surface causing our next access to the Surface to crash KWin. So for
safety we connect to the destroyed signal and reset the pointer.

The disadvantage is that a minimized Xwayland window doesn't have a
preview any more.
9 years ago
Martin Gräßlin 5a98d8bbbd [wayland] Set depth in ShellClient depending on whether the Buffer has alpha
We need to set the depth in order to properly determine whether the
Surface has an alpha channel and whether blending needs to be enabled
for rendering.

For this a new method is introduced in Toplevel to set the depth. If
the depth changed in a way that the Toplevel gained or lost the alpha
channel a signal is emitted which implies that the hasAlpha property of
Toplevel is no longer constant.
9 years ago
l10n daemon script d07fd3a140 SVN_SILENT made messages (.desktop file) 9 years ago
l10n daemon script 99237c9b3f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
David Edmundson 9791978d53 enable wayland clients to go fullscreen
REVIEW: 123853
9 years ago
Martin Gräßlin 1420bb38a9 [wayland] Drop Qt version check from WaylandServer::fakeDummyQtWindowInput
No longer needed as we install keymaps which prevents the crash in
QtWayland this version check worked around.
9 years ago
Martin Gräßlin 3b4c508ee3 [wayland] Pass xkb keymap to Wayland server
When creating a new xkb keymap we need to pass it to the Wayland server's
seat. As the Wayland protocol expects the keymap as a file descriptor, a
temporary file is created, mmapped and the keymap written into it. As
the Wayland protocol doesn't restrict how long the file descriptor needs
to be valid we keep any created temporary file around till the
InputRedirection gets destroyed.
9 years ago
Martin Gräßlin 988ce28943 [wayland] Ensure size is updated before marking window as ready for painting
Fixes regression introduced with 90a6814: we may not queue a signal
taking a pointer to a ShellClient as the ShellClient might be destroyed
before the queued signal is delivered.

The idea for the queued signal was to ensure that the size is set when
windowShown is emitted - this can also be achieved by first updating the
size.
9 years ago
Martin Gräßlin 90a6814513 [wayland] Place ShellClients
When a ShellClient is added and it's not internal, it get placed just
like any other Client. This needs to happen after the initial size is
determined.

Please note: this breaks the positioning of popup windows (e.g. menus)
as they are placed like any other Client. This needs proper popup support
which right now does not yet exist and thus is not much difference to
before.
9 years ago
Martin Gräßlin 1a89fc55b5 Placement fully operates on AbstractClient
Remaining methods had to be adjusted in one go as they called back
into place method.
9 years ago
Martin Gräßlin f16644ac2e Move maxSize and minSize to AbstractClient
With a default implementation returning either a INT_MAX size or 0.
9 years ago
Martin Gräßlin ffd6f9ceba Placement::placeUnderMouse operates on AbstractClient 9 years ago
Martin Gräßlin 737ad0b664 Move keepInArea to AbstractClient 9 years ago
Martin Gräßlin 007e1253c6 Add resizeWithChecks to AbstractClient
The virtual method does not take the xcb_gravity_t - that's only added
in a variant in Client.
9 years ago
Martin Gräßlin 670787086b Placement::placeOnScreenDisplay operates on AbstractClient 9 years ago
Martin Gräßlin aaca122902 Placement::placeAtRandom operates on AbstractClient 9 years ago
Martin Gräßlin 4d077c42b6 Placement::placeSmart operates on AbstractClient 9 years ago
Martin Gräßlin a261b1c253 Placement::placeCentered operates on AbstractClient 9 years ago
Martin Gräßlin b971749f1d Placement::placeZeroCornered operates on AbstractClient 9 years ago
Martin Gräßlin 78700e23fd Placement::checkArea operates on AbstractClient 9 years ago
Martin Gräßlin da2731be51 Move Client::move to AbstractClient and add implementation in ShellClient 9 years ago
Martin Gräßlin 48272a0de8 Ensure Compositor can tear down without a Workspace
It's possible that the Workspace doesn't get created at all (e.g.
Xwayland failed to start). In that case we must ensure to not call into
Workspace calls during tear down.
9 years ago
Martin Gräßlin 604b6d05f5 [wayland] Ensure Compositor is destroyed early enough
If startup fails and there is no Workspace the Compositor was destroyed
as a child of Application with the result of being destroyed after the
Wayland server resulting in a crash.

If the Workspace gets created the Compositor will be destroyed by the
Workspace, so there's no need to destroy it early.
9 years ago
l10n daemon script d0e5e86a30 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
Martin Gräßlin c798977e55 [wayland] Ensure KWin::atoms are destroyed before doing xcb_disconnect
Destroying the Atoms might call into xcb as a request might have to be
discarded. If atoms are destroyed after disconnecting xcb, this'll crash.
9 years ago
Martin Gräßlin f81655b7f5 [wayland] Ensure our own windows don't have flag Qt::X11BypassWindowManagerHint
The QtWayland QPA plugin does not create windows with
X11BypassWindowManagerHint which means that KWin's internal windows are
not shown at all. Even worse in QtQuick it can result in a freeze due to
blocking wait for a frame rendered which can just never happen.

As windows could be created by e.g. scripts or look and feel packages we
cannot ensure that the flag will never be set in source code.

Thus we use ApplicationWayland::notify to filter for Show events and
check whether the window to be shown is bypassing window manager hits.
If it is, we unset the flag, destroy the window and show a new one.
9 years ago
l10n daemon script 5d473e37ca SVN_SILENT made messages (.desktop file) 9 years ago
l10n daemon script cdf5ef113a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
9 years ago
Jonathan Riddell 098cf04f31 Update version number for 5.3.1 9 years ago
David Edmundson df1499784f move isFullScreenable to AbstractClient
REVIEW: 123871
9 years ago
Martin Gräßlin a9f1f3d85e [wayland] Properly handle case that EGL_WAYLAND_Y_INVERTED_WL is not supported
According to spec eglQueryWaylandBufferWL returns EGL_FALSE if
EGL_WAYLAND_Y_INVERTED_WL is not supported and in that case we should
treat it as af the value were set to EGL_TRUE.
9 years ago
Martin Gräßlin 64e01ac2ca [wayland] Use QProcess to start XWayland server
The code didn't use QProcess as in the early days of main_wayland.cpp
Xwayland had to be started before the QGuiApplication was constructed.
As this requirement doesn't exist any more we can use QProcess and
improve the interaction by e.g. provide useful error messages if
Xwayland couldn't be started.
9 years ago
Martin Gräßlin 9954f1167f [wayland] Call pixmapDiscarded when ShellClient's size changes 9 years ago
Martin Gräßlin 20286fa671 Reset not-valid WindowPixmap in pixmapDiscarded
Let's recreate it.
9 years ago
Martin Gräßlin 783afd17b7 [wayland] Delay WaylandServer::shellClientAdded till the Surface is ready for painting
This simplifies the interaction: we know that the Surface is useable if
it got announced to the Workspace.
9 years ago
Martin Gräßlin aff93b1216 [wayland] ThumbnailItem supports ShellClients 9 years ago
Martin Gräßlin 45c1eddf4a Make Toplevel::window() virtual and implement in ShellClient
We need a shared window id in some way to e.g. properly support TabBox.
Though I do not like that the return value is xcb_window_t. This should
be either changed or a new "generic" windowId needs to be introduced.
9 years ago
Martin Gräßlin eec356494a [wayland] Internal ShellClients don't take input
We handle input for own windows in an own way.
9 years ago
Martin Gräßlin 36fa88893e [wayland] Track the internal ShellClients in WaylandServer
Adds all internal ShellClients into a dedicated list. This ensures that
we don't perform "normal" window management on them.

In addition we add them to the top of the stacking order. This restores
behavior as it is on X11: internal windows are using BypassWindowManagerHint
and thus on top of everything.
9 years ago
Martin Gräßlin 23b19b4efe [wayland] Add a bool ShellClient::isInternal
Helper method to identify whether a ShellClient is for one of KWin's
internal connections (e.g. a QWindow).
9 years ago
Martin Gräßlin 4ed4d4dab4 [wayland] Create a windowId for ShellSurface
The internal used window Id consists of two parts identifiying the
Client and one identifying the Surface. That is the first 16 bits
are set to the ClientConnection, the last 16 bits are taken from
the Surface id. As the Surface id is 32 bits, but we only use 16 bits
there is a chance of overlap. So this might need some improvement.
9 years ago
Martin Gräßlin c63605da06 ThumbnailItem operates on AbstractClient 9 years ago
Martin Gräßlin 0258748eb5 Merge branch 'Plasma/5.3' 9 years ago
Thomas Lübking ae31aaaa13 fix presentwindows crash on disabling closebuttons
m_closeWindow "dangles" and protects m_closeView access
in postPaintScreen

REVIEW: 123865
9 years ago
Thomas Lübking 12358f839a no VBO upload for zero vertex count
causes out of bounds segfault

BUG: 347900
REVIEW: 123865
FIXED-IN: 5.3.1
9 years ago