Commit graph

23643 commits

Author SHA1 Message Date
Vlad Zahorodnii
e91b621d53 x11: Stop requesting XCB_EVENT_MASK_COLOR_MAP_CHANGE
It's unused.
2022-11-09 11:52:14 +00:00
Vlad Zahorodnii
af39185a9a wayland: Avoid selecting unused X11 events
We don't use input events on Wayland so Xwayland doesn't need to report
them back to us.
2022-11-09 11:52:14 +00:00
l10n daemon script
40385fa12c GIT_SILENT Sync po/docbooks with svn 2022-11-09 02:06:00 +00:00
Vlad Zahorodnii
9f345d4dd3 autotests: Fix remaining "using namespace KWayland::Client" 2022-11-08 23:15:17 +02:00
David Edmundson
dadfd7aec8 Drop isCompletelyOpaque optimisation
With the floating geometry this becomes a non-trivial check, at some
point this will cost more than the gl blend itself.
2022-11-08 15:04:48 +00:00
David Edmundson
bcd9f1e958 Provide SurfaceItem::shape as a floating vector
Our logical co-ordinates for shape can be floating. The shape is used to
determine final vertices on screen.

The commit appears to introduce some new loops but they're mostly what
QRegion would be doing internally so it shouldn't impact performance.
For most cases we just have a single rectangle in our shape anyway.

opaqueRegion is unchanged for now.
2022-11-08 15:04:48 +00:00
Vlad Zahorodnii
482741499d autotests: Reduce the number of "using namespace KWayland::Client"
KWayland::Client has ambiguous type names such as "Compositor" or
"Output". Use full types to improve code readability.
2022-11-08 13:34:58 +00:00
l10n daemon script
a81147837d GIT_SILENT Sync po/docbooks with svn 2022-11-08 02:05:43 +00:00
Zhiyi Zhang
68d1ee8f08 x11window: Don't send a final ConfigureNotify event in leaveInteractiveMoveResize()
With 74eb0d8, ConfigureNotify events are always sent when moving windows. It's no longer necessary
to send a final ConfigureNotify event after a window is moved.
2022-11-07 21:16:06 +08:00
Zhiyi Zhang
74eb0d861b x11window: Send ConfigureNotify events when moving windows
This removes the optimization that sends only one ConfigureNotify event after moving is completed.
However, other windows may depend on ConfigureNotify events to adjust their position in a timely
manner. For example, the shadow window surrounding the main login window of WeChat on Wine.

BUG: 449302
2022-11-07 16:11:23 +08:00
l10n daemon script
13a793d9bb GIT_SILENT Sync po/docbooks with svn 2022-11-07 02:51:37 +00:00
l10n daemon script
163c36595e 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"
2022-11-07 01:51:06 +00:00
l10n daemon script
894883f457 GIT_SILENT Sync po/docbooks with svn 2022-11-06 02:06:33 +00:00
Vlad Zahorodnii
5762b9a4cc core: Drop Platform::supportsGammaControl()
If the platform doesn't support setting gamma ramps, let the request
fail. In long term, we need a software fallback too so this property is
not that relevant.
2022-11-05 09:03:39 +00:00
Vlad Zahorodnii
084f92bd7a backends/x11: Make OverlayWindow factory function private to the backend
The concept of an overlay window is specific to X11 and it's not present
on other platforms.
2022-11-05 08:44:58 +00:00
Vlad Zahorodnii
1f7bfc7902 backends/x11: Move OverlayWindow handling to standalone backend 2022-11-05 08:44:58 +00:00
l10n daemon script
bef06f1aaf GIT_SILENT Sync po/docbooks with svn 2022-11-05 02:05:22 +00:00
Aki Sakurai
62af17617f Screencast: Fix inverted screencast on OpenGLES and memfd
The output of glReadPixels is in inverted when GLTexture is not inverterd.
2022-11-04 23:19:42 +00:00
Marco Martin
a8d0d7f8a5 Option for WindowHeap to not alter the layout
Bring back the DesktopGrid option to not alter window position
so that the grid look like perfect screenshots of each desktop

BUG:455350
2022-11-04 12:15:50 +01:00
l10n daemon script
3ae8e8fa6d GIT_SILENT Sync po/docbooks with svn 2022-11-04 02:05:55 +00:00
Vlad Zahorodnii
432d1f9d31 Remove unused include 2022-11-03 20:30:06 +02:00
Vlad Zahorodnii
af0d39c118 Remove some commented out code 2022-11-03 17:55:46 +00:00
Aleix Pol
fee348d147 buttonrebindsfilter: Add bracesbuttonrebindsfilter: Add braces 2022-11-03 16:41:44 +01:00
Aleix Pol
baac63ca13 buttonrebinds: Fix infinite loops with RebindScope
This way it's possible to assign A to B and B to A (i.e. swap buttons)
without getting it crash in your face.
2022-11-03 16:41:44 +01:00
Aleix Pol
6bcedf3aad buttonrebinds: Allow sending tablet tool button events
Makes it possible to trigger button events from your tablet tool.
2022-11-03 16:41:44 +01:00
Aleix Pol
609065528e buttonrebinds: Allow configuring tablet tool rebinds
Makes it possible to assign an action to one of the tablet tool buttons.
2022-11-03 16:39:53 +01:00
Aleix Pol
d0da1cf751 buttonrebinds: Allow binding mouse button actions
Makes it possible to assign a pointer button event as the trigger to a
button rebind. This would make it possible to make a mouse click the
outcome of such actions.
2022-11-03 16:39:53 +01:00
Vlad Zahorodnii
d257da0a00 Use StrutRects to represent restricted areas
This saves us some StrutRects -> QRegion conversions and it might be
useful for floating point struts.
2022-11-03 13:53:41 +00:00
Vlad Zahorodnii
78ed1e2add Move OpenGL safe point handling to Compositor/CompositorX11
It's not something that output backends care about, so move it to
Compositor.
2022-11-03 12:09:16 +00:00
Vlad Zahorodnii
364c2f3a14 Drop Platform::requiresCompositing()
It doesn't seem to be used elsewhere other than
Options::isUseCompositing(), which is quite X11-specific.
2022-11-03 12:09:16 +00:00
Vlad Zahorodnii
632c3508a7 build: Move libkwineffects specific ecm_setup_qtplugin_macro_names to src/libkwineffects 2022-11-03 11:46:41 +00:00
Vlad Zahorodnii
c76563b174 core: Drop Platform::warpPointer()
It's odd to manipulate host cursor position and it's not highly
important, for example we haven't had a need to warp the cursor on
wayland.

The main motivation behind this change is to slim down the Platform to
make it more output oriented.
2022-11-03 10:35:30 +00:00
Vlad Zahorodnii
f20ed67ba0 ci: Require tests to pass on FreeBSD too
With isolated XDG_RUNTIME_DIR, tests should be more robust now, so we
can try enforcing a requirement that tests must pass on FreeBSD too.
2022-11-03 10:34:04 +02:00
l10n daemon script
c10c116822 GIT_SILENT Sync po/docbooks with svn 2022-11-03 02:11:16 +00:00
l10n daemon script
0c1f5c20e0 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"
2022-11-03 01:54:29 +00:00
Aleix Pol
6ab6d3124a screencasting: Make sure we are reporting properly scaled damage values
It should be in stream pixels rather than logical
2022-11-02 20:18:27 +01:00
Aleix Pol
ea4741cbcc screencasting: Polish region case
- By scaling: make sure we are scaling by the feed size rather than the
output size, which is irrelevant in this case.
- By positioning: properly position the outputs on the feed if the feed
scale is != 1
2022-11-02 20:18:27 +01:00
Aleix Pol
eb7f93002c screencasting: No need to keep calculating the textureSize 2022-11-02 20:18:27 +01:00
Xaver Hugl
d5a2c639a0 window: fix checkWorkspacePosition moveRight/Bottom
With QRectF, moveRight and moveBottom have an effective offset of 1 vs QRect
2022-11-02 17:58:29 +00:00
Xaver Hugl
3d9618316b autotests/integration: add more cases to OutputChangesTest 2022-11-02 17:58:29 +00:00
Xaver Hugl
264ecf40f8 placementtracker: fix some windows not being restored
If a window was moved by the user, it got effectively blacklisted from being
ever restored again. Instead of only tracking the last restore point, compare the
current window state with the state it had when the output configuration was last
seen. If either that or the last restore point match the window, restore the old
window state.
2022-11-02 17:58:29 +00:00
Xaver Hugl
84635c71ec plugins/screencast: centralize format querying into the RenderBackend
BUG: 460563
2022-11-02 17:10:10 +01:00
Vlad Zahorodnii
e73fedf2ae x11: Use moveResizeGeometry() instead of frameGeometry() where appropriate 2022-11-02 11:00:03 +00:00
Vlad Zahorodnii
a235cd6d26 build: Hardcode kwin name
We use KWIN_NAME, KWIN_INTERNAL_NAME_X11 and KWIN_INTERNAL_WAYLAND
properly only in a few places. In other, we use hardcoded names.

Let's not bother and hardcode kwin names everywhere rather than have one
foot in and one foot out, it's simpler.
2022-11-02 10:21:23 +00:00
Vlad Zahorodnii
1801421080 Forward declare Xkb in keyboard_input.h 2022-11-02 09:21:55 +00:00
Vlad Zahorodnii
391c777936 Remove unused keyboard_input.h include 2022-11-02 09:21:55 +00:00
l10n daemon script
02d55586d4 GIT_SILENT Sync po/docbooks with svn 2022-11-02 02:23:09 +00:00
l10n daemon script
33825b2e0a 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"
2022-11-02 02:00:07 +00:00
Nicolas Fella
3eb9106466 Expose enabledByDefault of input device to DBus 2022-11-01 18:21:42 +00:00
Vlad Zahorodnii
89607dfebd qAsConst -> std::as_const
We started using std::as_const() in some parts of kwin, so let's use it
everywhere for the code consistency sake.
2022-11-01 16:52:01 +02:00