Commit graph

25 commits

Author SHA1 Message Date
Ivailo Monev
35541fb02c kdeui: initialize variables in KWindowSystem::setOnDesktop()
see the previous commits

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-30 01:35:10 +03:00
Ivailo Monev
43239c5d96 kdeui: simplify compositor ownership check in KWindowSystemPrivate::x11Event()
it does not matter what window the event is comming from when it comes to
the compositor atom - it is supposed to be only one

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-07 06:51:11 +03:00
Ivailo Monev
d5d26f9b11 kdeui: remove unused and non-operational KWindowSystem::allowExternalProcessWindowActivation() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 04:06:40 +02:00
Ivailo Monev
ca762874c8 kdeui: remove KWindowSystem::doNotManage() method
what if KWin is not running? it's not a WM spec thing anyway

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-09 04:04:20 +02:00
Ivailo Monev
7205f8f391 kdeui: install the KWindowSystemPrivate event filter before selection XFixes input
fixes possible X11 event race

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-05 02:48:44 +02:00
Ivailo Monev
27b5f27d2e kdeui: check if Xfixes is available before using xfixesEventBase
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-17 00:45:38 +02:00
Ivailo Monev
78ff2c38ef kdeui: initialize KWindowSystemPrivate::xfixesEventBase
now the compiler will not be able to detect uninitialized usage, it did not
warn for it either tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-17 00:44:43 +02:00
Ivailo Monev
d76b5a1e64 kdeui: install KWindowSystemPrivate event filter after Xfixes check
otherwise xfixesEventBase may be used uninitialized (it still can be but
only if Xfixes is not available, to be fixed in the follow-up commit)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-17 00:37:11 +02:00
Ivailo Monev
f2d1398ac7 kdeui: use DefaultScreen() to get the screen in KWindowSystem::minimizeWindow()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-16 03:34:47 +02:00
Ivailo Monev
a265d51b10 kdeui: KWindowSystem::connectNotify() optimization
the QLatin1String constructs result in QString comparison

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-16 03:09:57 +02:00
Ivailo Monev
ae98b867a0 kdeui: plug some memory leaks
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-18 15:55:57 +00:00
Ivailo Monev
a567ffcc5b kdeui: avoid QPixmap->QImage->QPixmap converting and construction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-05 03:29:35 +00:00
Ivailo Monev
728e5f7061 generic: get rid of KXUtils
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-08-15 15:08:04 +00:00
Ivailo Monev
412fd65b4f kdeu: get rid of KXUtils::createPixmapFromHandle()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-08-15 14:53:16 +00:00
Ivailo Monev
6eab6c564d kdeui: replace some tabs with space
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-08-15 13:23:59 +00:00
Ivailo Monev
293c931e22 Revert "generic: port some functionality to XCB" 2016-08-12 00:52:46 +00:00
Ivailo Monev
8024c8cbec generic: fix indentation compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-06-11 19:34:32 +00:00
Ivailo Monev
457ce43ad1 kdeui: use non-deprecated methods of QRect/QRectF
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-05-28 23:14:26 +00:00
Ivailo Monev
2eceb5f064 generic: misc cleanups 2015-09-27 01:19:30 +00:00
Ivailo Monev
332bb23e15 generic: port some functionality to XCB
the module for finding the library is simple and kdeui now has to
link to both X11 and XCB libraries but this allows clients that
make use of the KDE window management API to not use Xlib API.
2015-08-20 06:06:40 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
610f06586e kdeui: make use of ret in compositingActive() 2015-07-14 22:36:33 +00:00
Ivailo Monev
d17cfcde10 kdeui: prevent segmentation fault due to failed XOpenDisplay() 2015-07-14 22:33:55 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00