24979 Commits (b823747c3b9302a5bcd56027a729a3aa55414d26)
 

Author SHA1 Message Date
Xaver Hugl 16fb2848ed libkwineffects: handle GLTexture upload failures
This is required for properly dealing with GPU resets
1 year ago
Xaver Hugl 572bc75de4 libkwineffects: handle GLTexture allocation failures
This is required for properly dealing with GPU resets
1 year ago
Xaver Hugl bfc8bcb24a libkwineffects: use std::unique_ptr in GLTexture
The implicit internal sharing stuff wasn't used in KWin, and the way the
d pointer was initialized was horrible
1 year ago
Xaver Hugl 3eb5f18861 libkwineffects: make GLVertexBuffer::map safer
This ensures that in the event of a GPU reset, failure to map the vbo is
always handled without crashing
1 year ago
David Edmundson 3ea701743e screen edge: Emit cleanup signals if needed on teardown
The Effects API has one signal screenEdgeApproaching with effects
monitoring the last signal to stay in sync.

If an Edge is destroyed whilst visible, effects currently do not get
notified and it can stay there forever.

This patch emits screenEdgeApproaching if appropriate with a factor of 0
when an edge is destroyed.

BUG: 403354
1 year ago
David Edmundson db10a85efc screenedge: Remove outdated line of documentation
This moved to X11Window at some point
1 year ago
Joshua Goins 6eff561234 useractions: Add separator above the "Close" action
This matches other places in Plasma e.g. the task manager, where
there is a similarly placed separator.
1 year ago
Xaver Hugl cdafbbbd6f backends/drm: always do color management on NVidia GPUs
This comes with a small performance hit but ensures that night color works

BUG: 450327
BUG: 468895
1 year ago
l10n daemon script 964254e2a5 GIT_SILENT Sync po/docbooks with svn 1 year ago
Xaver Hugl f1536973d4 introduce ColorDescription and fix screen casting with color management 1 year ago
Xaver Hugl 7fa12ee4a6 utils/edid: use the common Colorimetry class instead of a separate struct 1 year ago
Vlad Zahorodnii ebf6bd3a33 autotests: Move plasmashell bits from testMoveResizeWindow to testPlasmaSurface
Move the plasmashell specific bits to testPlasmaSurface so it's all
encapsulated and easy to drop in the future.
1 year ago
Vlad Zahorodnii 1c87a804f0 autotests: Port testShowingDesktop to layer-shell 1 year ago
Vlad Zahorodnii 05695d7f1b autotests: Avoid binding plasmashell global in tests that don't use it 1 year ago
Bharadwaj Raju 539b6bb6ac XdgPopupWindow: Allow position to be set by Plasma
This lets Plasma itself control the position of popup windows such as
Plasma tooltips. transientPlacement() now returns the position set by Plasma
if available.

BUG: 463272
1 year ago
Vlad Zahorodnii 2aba3deca4 wayland: Drop screen edge support in XdgToplevelWindow
Use kde_screen_edge_v1 + layer surface instead.
1 year ago
Vlad Zahorodnii cdb8887a15 wayland: Drop strut support in XdgToplevelWindow
Use layer_surface.set_exclusive_zone instead.
1 year ago
Vlad Zahorodnii 9d0bb1bff7 autotests: Remove incorrect test
StrutsTest::testLeftScreenSmallerBottomAligned() used to pass because
one of the previous tests changes the maximize policy to maximize.

A window will be maximized only if it's larger than the maximize area
but smaller than the screen area. That's not the case and the test makes
an incorrect assumption about how X11Windows are placed.
1 year ago
Vlad Zahorodnii 006ab40e44 wayland: Make LinuxDmaBufV1ClientBuffer private
dmabuf related code can rely on DmaBufAttributes instead, so let's make
LinuxDmaBufV1ClientBuffer private to make graphics buffer handling
generic.
1 year ago
Vlad Zahorodnii 6b2f46ca1f autotests: Remove unused outputbackend.h includes 1 year ago
Vlad Zahorodnii cab0765947 autotests: Use layer-shell based panels 1 year ago
Mouse Zhang f3e4495e44 plugins/qpa: initialize buffer in backingstore
BUG: 437062
1 year ago
l10n daemon script 79fd2a4937 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script ba157fc3a7 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"
1 year ago
Aleix Pol d87f270539 EffectTogglableState: Improve the documentation
Explains the use and life-cycle of the gesture objects
1 year ago
Aleix Pol 33c3a60aa7 Rename TogglableState -> EffectTogglableState 1 year ago
Aleix Pol ad68d6860e globalshortcuts: Do not ignore duplicated shortcuts
If a shortcut has been registered several times, we can activate them several
times as well. Otherwise we just registered the first one that was introduced.
This also makes it impossible to use certain shortcuts depending on the
state.
1 year ago
Aleix Pol 7c5c77d53b desktopgrideffect: Adopt TogglableState
Removes a bunch of copy-pasted code and makes the trigger gesture the mirror
of the activation. So it opens with a 4 finger swipe up and it closes with
these 4 fingers back down.
1 year ago
Aleix Pol 4eeadb6a9f fix ci 1 year ago
Aleix Pol 1b7a48de40 effects: Move the TogglableState class into a reusable space 1 year ago
Aleix Pol bb8e5458a7 overview: Split out the state managing code into a separate class
This way it can be used by other effects eventually.
1 year ago
Aleix Pol 4c3d3053ab overview: Make the deactivation gesture to be the inverse of the activation
It is not intuitive that one needs to use the same gesture to activate
and deactivate an effect. Make the deactivation the inverse of the
activation instead.
1 year ago
l10n daemon script 6cf26c615a GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script 33fb2ccc40 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"
1 year ago
l10n daemon script 91efcebbf1 GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script a7b6071f6b 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"
1 year ago
Vlad Zahorodnii 83261fc82a wayland: Implement kde-screen-edge-v1
It's needed to port the plasma panel to the layer shell protocol.
1 year ago
l10n daemon script 643a5f53e5 GIT_SILENT Sync po/docbooks with svn 1 year ago
Nate Graham 7f277bdfe9 plugins/overview: close when double-clicking on a desktop
Now that a single-click on a desktop in the desktop bar switches Virtual
Desktops within the Overview effect, it would be nice to have an easy way
to also trigger the prior behavior of switching and also closing the effect.

This can be accomplished by letting people double-click on a desktop to
both switch to it and also close the effect.

I found myself doing this automatically; IMO it feels quite natural.

BUG: 469307
FIXED-IN: 6.0

@teams/usability
1 year ago
Xaver Hugl ecc66a03d0 backends/drm: force a modeset after tty switches with legacy
We don't know what the current mode is, or if the display is even enabled
or whatever. Always do a modeset to be sure everything is correct

BUG: 469280
1 year ago
Vlad Zahorodnii d3c82fa103 plugins/magiclamp: Make it look good with hidden panels
If the panel is hidden, the animation can be clipped some distance away
from the screen edge. To fix that, move the icon offscreen.
1 year ago
Vlad Zahorodnii 2ff040a744 plugins/slidingpopups: Fix a crash on compositing restart
The sliding popups effect can be unloaded while there's still an active
animation for a closed window.

If that happens, the EffectsHandler::windowDeleted signal may be emitted
when the EffectWindowDeletedRef objects are destroyed. It happens after
the SlidingPopupsEffect destructor.

The sliding popups effect also has an EffectsHandler::windowDeleted
slot.

So, the problem is that m_animationsData gets destroyed first, then
m_animations is destroyed next. When m_animations is destroyed, the
deleted references will be released and EffectsHandler::windowDeleted
will be emitted. SlidingPopupsEffect::slotWindowDeleted will access
m_animationsData whose memory has been just released.

In order to prevent crashing, this change ensures that animations are
canceled while m_animationsData is still valid.
1 year ago
l10n daemon script a3bc2abaf1 GIT_SILENT Sync po/docbooks with svn 1 year ago
Ismael Asensio 2449b58974 tiles: Adjust padding between windows
Make the total padding between windows equal to the padding against the
screen borders by applying just half of it on the common borders.

Adjust tests accordingly.

BUG: 469720
FIXED-IN: 5.27.6
1 year ago
l10n daemon script dde4f5d03c GIT_SILENT Sync po/docbooks with svn 1 year ago
l10n daemon script f720cf699b 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"
1 year ago
Natalie Clarius 9a3da09899 Refine order of previous/next screens in Workspace::findOutput
A screen should be considered further top, and therefore more previous, only it is strictly above the other with no vertical overlap, and not if only the vertical center is higher while they are horizontally on a line. Otherwise, on a left to right setup with screens of different resolutions aligned at the edges (and thus different vertical centesr), the order will be unintuitive.

BUG: 467996
FIXED-IN: 5.27
1 year ago
Antonio Russo 966416cb60 [script] Find and interact with windows
This patch adds mechanisms to find and interact with windows to the
scripting API:

 - workspace.windowAt provides a way to list the windows at a given
   location on the screen.
 - workspace.stackingOrder provides a list of all windows in the order
   they are stacked on the screen.
 - workspace.raiseWindow provides a mechanism to bring a given window to
   the top of that list, making it visible above all others.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
1 year ago
Vlad Zahorodnii ea543ebe14 effects/magiclamp: Improve code readability
Code repetition is not great, but it's extremely hard to read the magic
lamp code because of the SET_QUADS macro.
1 year ago
Vlad Zahorodnii 00a1a506d1 effects/magiclamp: Make it look good with floating panels
The magic lamp literally "squashes" the window through the window icon
in the task manager.

It's assumed that there's nothing below the panel, so the magic lamp
doesn't perform any clipping.

With floating panels, it's not the case. So let's clamp the x or the y
coordinates when the window moves horizontally or vertically,
respectively, in order to ensure that the window is not visible in the
gap between the floating panel and the screen edge.

BUG: 361121
BUG: 466177
1 year ago