Commit graph

328 commits

Author SHA1 Message Date
Ivailo Monev
df90948b17 kwin: remove now redundant workaround for broken input handling
this has been there for a long time, huh?

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-11-05 01:53:25 +02:00
Ivailo Monev
4f1db8a74e kwin: warn if resetting the decoration settings fails
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-23 07:00:31 +03:00
Ivailo Monev
e33272eab0 kwin: remove unused Oxygen::Config methods arguments
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-23 06:56:12 +03:00
Ivailo Monev
d70570e598 kwin: delete the already created plugin config widget from KWin::KWinDecorationModule::load()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-23 06:30:47 +03:00
Ivailo Monev
f9f7c94639 kwin: implement option to set the X11 picture filter to any of the currently supported, default to "good"
obviously using the "good" filter as default can have a performance impact
but if the system cannot handle it the option is there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 18:00:18 +03:00
Ivailo Monev
b6b0e52456 kwin: restore kwindecoration KCM
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-22 15:42:16 +03:00
Ivailo Monev
e739972e60 kwin: remove unused headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 13:27:34 +03:00
Ivailo Monev
83537ded01 kwin: adjust expected data in tests
for reference:
2546775b58

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 13:16:22 +03:00
Ivailo Monev
4b3d2080e9 kwin: KWin::PaintData optimization
QGraphicsScale and QGraphicsRotation are for use with QGraphicsItem, have
signals and more setters and getters than KWin::PaintData needs making its
use in KWin::PaintData sub-optimal

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 13:14:20 +03:00
Ivailo Monev
1cad595824 generic: drop scripting support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:14:30 +03:00
Ivailo Monev
2546775b58 kwin: create two virtual desktops by default
there may be other hardcoded number somewhere else

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 15:51:20 +03:00
Ivailo Monev
3dac0b99ec kwin: remove borked window_strip tabbox client
requires org.kde.plasma.mobilecomponents import that is not maintainted
as part of Katana and never was

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-14 18:18:41 +03:00
Ivailo Monev
a5a07d46ca generic: drop bogus multihead support
note that it is independant of X11 multiscreen, as the comment in
KWin::Workspace::isOnCurrentHead() claims

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 16:41:30 +03:00
Ivailo Monev
d02f3ac43d kwin: different take on mouse interception from startupfeedback effect
grabbing the pointer does not play well with the kwin mouse interception
feature, notably for the presentwindows effect

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 02:21:34 +03:00
Ivailo Monev
9881d8b4e6 generci: do not create temporary QString objects for conversion to integer
QByteArray::toLong() does the same as QString::toLong() except faster

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 22:38:33 +03:00
Ivailo Monev
db6643a680 generic: remove redundant logout effect hack
ksmserver no longer uses custom effect for logout, for reference:
36d3e65630

bonus points for less X11 round-trips on logout

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 20:12:17 +03:00
Ivailo Monev
66f6104da4 generic: replace QLabel with the new KPixmapWidget class
or how to optimize painting of pixmaps and icons

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 05:10:09 +03:00
Ivailo Monev
7d79ee3af0 kwin: intercept the mouse and interrupt the startupfeedback effect on mouse release
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 22:53:28 +03:00
Ivailo Monev
c7173b98af kwin: use MIME type instead of glob for the window rules
requires the following commit from kdelibs:
31553f8958bb3aa36957ae5d2ebe0b315cad27d8

the MIME type is translated while globs passed to
KFileDialog::getSaveFileName() (and the related getters) have to be
translated in each application

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-27 00:24:09 +03:00
Ivailo Monev
cca70e0412 kwin: KWin::Workspace::clientShortcutUpdated() optimization
KActionCollection::action() method takes QString as argument thus the
conversion to latin1 and then to char array would generate code path such
that QString would have to be constructed again..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-26 23:24:15 +03:00
Ivailo Monev
f47177f876 generic: adjust to KNotification changes
some notification files, such as the style KCM one, were not even used

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-25 08:07:58 +03:00
Ivailo Monev
186a7702e8 generic: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 04:29:13 +03:00
Ivailo Monev
66e4c86523 kwin: Oxygen::Client::mouseMoveEvent() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 01:06:55 +03:00
Ivailo Monev
016fea783c generic: adjust to KLocalizedString changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 00:36:52 +03:00
Ivailo Monev
7b8bc6b8ef generic: use the new public KTimerDialog
see the following commit in kdelibs repo:
e0d476372cd6a39a01cb8b70f31192e4d2d540c8

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-16 15:42:35 +03:00
Ivailo Monev
2a4b83adff kwin: get the cursor theme and size via X11 functions in KWin::ZoomEffect::recreateTexture()
for consistency (KWin-wise anyway)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 03:00:36 +03:00
Ivailo Monev
5d34b9cfcb generic: make use of the new KDE_DEFAULT_CURSOR_THEME definition
requires d278c3c63c26aa0b0f63d630d27c210213015f1a from kdelibs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 02:43:30 +03:00
Ivailo Monev
b60b5e38d5 kwin: remove unused KWin::ZoomEffect members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-15 02:19:56 +03:00
Ivailo Monev
f23a2f7a7b generic: remove useless AUTHORS files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-11 20:12:42 +03:00
Ivailo Monev
9a10c6c95e generic: adjust to KAboutData changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 17:48:01 +03:00
Ivailo Monev
cf6a2620c6 generic: remove dead and irrelevant links references
consider the mail references just as dead

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 15:44:43 +03:00
Ivailo Monev
ac19d657ae kwin: ensure there are no duplicate rules
because KStandardDirs::findAllResources() will return local and global
rules thus if there is a global and local rule file with the same name
there would be duplicates, using KStandardDirs::NoDuplicates flag will
not solve that because the rules are merged into the main kwinrulesrc
config

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 11:29:10 +03:00
Ivailo Monev
96a522adbd kwin: merge window rules into global rules config
prior to 93a4a9263b it was done by a
separate program (kwin_update_default_rules)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 10:38:24 +03:00
Ivailo Monev
108f16a997 kwin: correct patterns for window rules in kwinrules KCM
plasma-desktop for example installs such file and it is suffixed with
".kwinrules" (see
plasma/containments/desktop/plasma_desktop_containment.kwinrules). also a
new MIME type for such file was added, see the following commit in the
kdelibs repo:
31553f8958bb3aa36957ae5d2ebe0b315cad27d8

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-10 10:31:08 +03:00
Ivailo Monev
dde770cadc kwin: remove unused notification event
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-09 02:40:58 +03:00
Ivailo Monev
d02e8c10af generic: log backtrace when applications that are automatically restarted crash
previously the KCrash::AutoRestart flag was overriding all other flags -
that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 21:32:05 +03:00
Ivailo Monev
8558409838 kwin: set the tabbox preview layout size to fit the preview images size
so that there is a empty space at the bottom of the preview, same as the
empty space at the top

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 07:35:09 +03:00
Ivailo Monev
b9d801db49 generic: adjust to kBacktrace() function changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-04 08:25:12 +03:00
Ivailo Monev
4a613cc1ab generic: drop unused oxygen style background pixmap feature
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-31 08:54:54 +00:00
Ivailo Monev
19b46a1c46 generic: replace QVarLengthArray<T> with std::vector<T> and QVector<T>
std::vector<T> for when the data does not have to be shared (e.g. POD
types) and there is no Q_DECLARE_TYPEINFO() involved, QVector<T> for when
data should be shared

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-30 18:50:02 +00:00
Ivailo Monev
388468c130 kwin: remove useless comment in KWin::Options::updateSettings()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-29 10:11:21 +03:00
Ivailo Monev
0f5f934ad0 kwin: fix test failure in case locale is not the default
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-28 14:03:41 +03:00
Ivailo Monev
c380602abf generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-26 23:35:19 +03:00
Ivailo Monev
7d43e558d8 kwin: update extensions list
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 21:20:08 +03:00
Ivailo Monev
0417ee3799 kwin: remove unused and redundant atoms
_KDE_SYSTEM_TRAY_EMBEDDING is unused, _KDE_NET_WM_FRAME_STRUT is same as
_NET_FRAME_EXTENTS

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-16 21:17:57 +03:00
Ivailo Monev
c6114b45d9 generic: do not install kcfg files
see the following commit in kdelibs repo:
ee1aa40904077b7cae3c3575ffeaab176e42a85b

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-09 05:50:15 +03:00
Ivailo Monev
d5bf44b467 kwin: call the KDecorationOptionsPrivate() constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 03:46:32 +03:00
Ivailo Monev
5c94746f4b kwin: remove redundant KDecorationProvides class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-21 03:44:26 +03:00
Ivailo Monev
6f288381c1 ksmserver: drop legacy session support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-20 09:14:40 +03:00
Ivailo Monev
c99191210f kwin: add FIXME for KWin::AnimationEffect::clipWindow()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-19 00:59:11 +03:00