Vlad Zahorodnii
2200f4ded9
windowsystem: Fix compilation with no deprecated build of KWindowSystem
...
Highlight window and present windows API has been deprecated in 5.82.
2021-04-29 10:46:39 +03:00
Vlad Zahorodnii
9e1de4522e
platforms/drm: Remove unused defs and includes in drm_backend.cpp
2021-04-29 08:45:27 +03:00
Vlad Zahorodnii
44fc23f6e7
Fix build on FreeBSD
2021-04-29 08:36:26 +03:00
Vlad Zahorodnii
c4c46a089f
platforms/drm: Properly detect if there are no DRM devices
...
If no primary gpu can be found, we need to quit.
2021-04-29 05:34:19 +00:00
Vlad Zahorodnii
9f030ecd40
platforms/drm: Enable atomic modesetting in hot plugged gpus
...
At the moment, if a gpu is hot plugged, it won't have atomic modesetting
enabled.
2021-04-29 05:34:19 +00:00
Vlad Zahorodnii
03c38e02e9
platforms/drm: Remove DrmBackend::findOutput()
...
It's unused.
2021-04-29 08:10:37 +03:00
Vlad Zahorodnii
54a034b7cf
platforms/drm: Use dev nums to find gpus
...
This way we don't need to convert strings to ints every time
udev_device_get_sysnum() is called.
2021-04-29 04:58:46 +00:00
Vlad Zahorodnii
fe0039091c
platforms/drm: Don't search for gpus on add udev event
...
If a gpu is added, don't search for it pointlessly in m_gpus.
2021-04-29 04:58:46 +00:00
Felipe Kinoshita
a2ed8cb9da
[effects/presentwindows] add a comment explaining why we are darkening the panel
2021-04-29 01:14:56 -03:00
l10n daemon script
1c6be7e32c
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"
2021-04-29 01:20:31 +00:00
David Edmundson
ccc5551ff0
[Input] Unset device group user data on teardown
...
BUG: 436287
2021-04-28 22:43:57 +00:00
Vlad Zahorodnii
04c3bee803
Remove unused things in drm_backend.h
2021-04-28 22:12:58 +03:00
Xaver Hugl
9cd046f206
platforms/drm: add GPU hotplug support
2021-04-28 18:57:47 +02:00
Xaver Hugl
0284aeb7bb
platforms/drm: Don't release drm buffers in EglGbmBackend
...
When we release the buffers that also removes the drm fbs.
This causes failing atomic commits that the atomic code
doesn't (yet) handle correctly, the result is a black
screen when compositing is restarted.
2021-04-28 13:51:06 +00:00
Cyril Rossi
8af45aa962
KCM KWinTabbox activate/deactivate desktop effects. Fix default value for highlightWindowsEnabled
2021-04-28 09:07:14 +02:00
Cyril Rossi
5bc3316e54
KCM KWinTabbox sidebar default indicator was always on
...
Use PluginsSettings but it's not part of the default state of the KCM
2021-04-28 09:07:14 +02:00
Cyril Rossi
c17914bc66
KCM KWinTabbox on defaultsIndicatorsVisibleChanged do not update unmanagedWidgetDefaultState
...
BUG: 419014
2021-04-28 09:07:14 +02:00
Bhushan Shah
18af4032e4
inputmethod: update state on new value not cached value
...
We want to update the inputpanel state on new value which is being set
and not based on the cached value.
Fixes the keyboard going in wrong mode like pre-edit mode when closed
and re-opened.
2021-04-28 03:39:12 +00:00
l10n daemon script
257d8f32cf
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"
2021-04-28 01:22:29 +00:00
Yuri Chornoivan
e209134e96
Fix some leftovers in the docbooks
2021-04-27 17:44:41 +03:00
Yuri Chornoivan
22ee512ba6
Add docs for virtual keyboard KCM
2021-04-27 17:09:41 +03:00
Xaver Hugl
40eb0e4f0e
platforms/drm: only print error for direct scanout when useful
...
Most wayland-native apps provide buffers that aren't suitable
for direct scanout; the message usually only spams the log full
without proper reason or useful information
2021-04-27 15:22:20 +02:00
Aleix Pol
af6f95b2eb
fb: remove unnecessary casts
2021-04-27 15:14:06 +02:00
Aleix Pol
0b14af5624
udev: Do not return a mysterious vector with just a null pointer
...
When getting the vector, it requires us to check both if it's not empty
but also that it's not null. I haven't seen it but we were not doing
this check.
Just return an empty vector when there's no devices instead.
2021-04-27 15:14:06 +02:00
Aleix Pol
0e433cb83a
udev: remove duplicated code
...
Let UdevDevice offer the method we need for sorting instead of just half
of it.
Always sort Udev enumerations, since the alternative is to sort it every
time it's called otherwise.
2021-04-27 15:12:26 +02:00
Vlad Zahorodnii
d7e9c717af
Explicitly cast major() and minor() to uints
...
On FreeBSD, the major() and the minor() macros return ints instead of
uints.
2021-04-27 12:02:38 +03:00
Vlad Zahorodnii
ba0e18955b
Add a debug message that gets printed if TakeDevice fails
...
This can be useful while debugging why the TakeDevice request fails.
2021-04-27 09:50:12 +03:00
Xaver Hugl
2aae299eba
Fix testScreens
2021-04-26 19:25:50 +00:00
Xaver Hugl
b6231aca92
Remove mentions of Xinerama from the Window Behavior kcm
2021-04-26 19:25:50 +00:00
Xaver Hugl
102f32112f
Change the default for "active screen follows mouse" to true
2021-04-26 19:25:50 +00:00
Aleix Pol
a21571c832
Do not run with the drm backend if there's no dri drivers
...
Only defaults to the drm backend if there is a /dev/dri directory.
CCBUG: 436053
2021-04-26 12:57:21 +00:00
Aleix Pol
4b3b5fa368
fb: make it easier to run on nomodeset
...
In the few cases where the framebuffer is needed, we'd get problems
because ioctl(KWIN_FB_NO_VSYNC) fails.
This removes the code entirely to just use a timer to refresh.
BUG: 436053
2021-04-26 12:46:55 +00:00
Aleix Pol
92fb680b04
Provide a kcm module to choose a virtual keyboard
...
BUG: 430850
2021-04-26 12:40:20 +00:00
Vlad Zahorodnii
2c05229141
qpa: Set minimum device ratio of 1 for windows
...
This is to prevent rendering issues in the present windows close buttons
as Qt supports scale factors that are less than one poorly.
2021-04-26 11:41:37 +00:00
Vlad Zahorodnii
c9ac2e3fb8
decoration: Fix rendering issues with scale factors < 1
...
QPainter::setWindow() doesn't work as we expect if the device pixel
ratio of the paint device is less than 1, for example 0.5 or 0.75.
QPainter only allows the effective device pixel ratios that are greater
than or equal to 1. This restriction probably has to be lifted.
For the time being, this change introduces a helper function that can be
used to determine the scale factor by which QPainter::window() must be
multiplied.
BUG: 432766
2021-04-26 11:41:37 +00:00
Harald Sitter
385ea10bef
SCM_SILENT typo--
2021-04-26 12:39:44 +02:00
Vlad Zahorodnii
6a57fa286e
autotests: Fix a few typos in kwinglplatformtest
2021-04-26 13:26:05 +03:00
David Edmundson
799db61381
Restore following XDG_SESSION_ID env if set
...
BUG: 435468
Testing done:
Ran on a VT with an XDG_SESSION_ID from another terminal, ensured it
switched
2021-04-26 09:37:22 +00:00
Vlad Zahorodnii
c103eb8f5c
qpa: Simplify backing store blitting
...
We can use QPainter::drawImage() to update the dirty area of the front
buffer. This way, we don't need to call std::copy().
2021-04-26 09:21:34 +00:00
Ömer Fadıl Usta
6adc8973d3
Remove duplicate entry in gitignore file
2021-04-26 06:26:02 +00:00
Felipe Kinoshita
64c721579d
[effects/presentwindows] Darken panel
2021-04-25 17:45:49 -03:00
Tomasz Paweł Gajc
e9fcd9584e
effects: add support Panfrost Mali driver
2021-04-24 16:04:44 +02:00
Weng Xuetian
17a585b5d5
Always apply size change from xdg_popup_reposition.
...
BUG: 436106
2021-04-23 13:36:18 -07:00
Vlad Zahorodnii
9ad83dafe6
autotests: Fix InputMethodTest
...
Currently, the test fails because the d-bus api was changed recently.
Use InputMethod::setEnabled() method to enable input method support.
2021-04-23 22:08:29 +03:00
Vlad Zahorodnii
c894956bba
autotests: Fix testVirtualKeyboardDBus
2021-04-23 21:40:04 +03:00
Nate Graham
b2ae5378c7
[effects/windowaperture] Hide windows in corners
...
Reducing the oppacity of these windows causes them to appear as phantoms
in the corners of the screen. They look quite odd on top of anything else
in the corners of the screen, such as any Plasma panels.
However making them 100% opaque doesn;t work either, since then they
look interactive, but they're not, and can't be made so due to the
scripting API used here.
So our only real option to remove the weirdness is to make them 100%
transparent, and therefore show the entirety of the desktop with no sign
that the effect is in use.
2021-04-23 13:23:48 +00:00
Vlad Zahorodnii
55c95f685f
Fix crash in debug console
...
We need an explicit return type; otherwise a QStringBuilder object will
be returned, which can reference already destroyed strings.
2021-04-23 10:28:22 +00:00
Aleix Pol
b372de8c74
Fix startup when running with ASAN
...
We can't call kwinApp() before KWin::Application hasn't been properly
initialized.
2021-04-23 09:38:42 +00:00
Nicolas Fella
3b66e634f9
Port away from KPluginTrader
...
It's about to be deprecated.
2021-04-23 09:19:47 +00:00
Vlad Zahorodnii
9fe53ee062
autotests: Fix DontCrashCursorPhysicalSizeEmpty
2021-04-23 09:55:04 +03:00