Fwd: Standalone build of KWin

429 views
Skip to first unread message

Petr Vaněk

unread,
Dec 22, 2012, 8:32:27 AM12/22/12
to razor-qt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

FYI


- -------- Original Message --------
Subject: Standalone build of KWin
Date: Fri, 21 Dec 2012 20:27:32 +0100
From: Martin Gräßlin <mgrae...@kde.org>
To: Petr Vanek <pe...@scribus.info>

Hi Petr,

could you please forward this mail to the razor-qt mailinglist? Somehow
googlegroups doesn't like me and bounced the mail.

Cheers
Martin

Hi Razor-Qt developers,

finally I can announce the availability of a patch [1] to build KWin
standalone. That is without building other parts of kde-workspace. The
patch
is on top of KDE/4.10 branch [2] as of today and available in git branch
"kwin/standalone" of my kde-workspace clone [3].

I hope this patch can help you to provide a tailored version of KWin.
Most of
the functionality which is required for this is already part of KWin
master
and also used in some KDE projects. E.g. for Plasma Active we use an
adjusted
KWin version without window decorations, without KCMs, with a
different binary
name and different configuration files. To make it easier to build
KWin for
new developers we introduced a build option to disable the Oxygen window
decoration which required to build most parts of kde-workspace. All
available
build options are documented in [4].

*Build Options*
For the usage in your project I would suggest the following build options:
* adjust the "KWIN_NAME" variable in CMakeLists.txt
* disable KWIN_BUILD_OXYGEN
* disable KWIN_BUILD_KCMS
* disable KWIN_BUILD_KAPPMENU
* disable KWIN_BUILD_ACTIVITIES

The steps on how to build KWin are probably well known given that it is a
cmake project. If not there is a beginners guide available in [5].

The patch does not reduce the dependency on kdelibs and kde-runtime.
We still
have a dependency on kdelibs and that cannot change in the lifetime of
KWin on
Qt 4 due to part of KWin being implemented in kdelibs.

*Styling*
Also KWin has a pretty standard Plasma look'n'feel. But this can be
easily
changed:
* window decorations can be written in QML since 4.10 - with disabled
Oxygen
the default decoration is in fact on QML. Documentation for this is still
missing, but is on my TODO list ;-)
* Alt+Tab window switchers can be written in QML. Documentation for
this is
available in [6] and this feature is e.g. used by Plasma Active to have a
customized switcher
* QML scripts can be loaded - e.g. our "Desktop Change OSD" is written
in QML.
It would be easy to replace it with one that does not use Plasma
Components.
Documentation is available in [7] for the general JavaScript API.

*What are the next steps?*
Development focus is currently on porting KWin to Qt5. Given the
strong usage
of XLib this is more work than for most projects. But I hope that this
will
soon be finished. With Qt5 and KDE Frameworks 5 the dependencies will
go down
to what is really needed and quite some for KWin important
functionality from
kdelibs has been upstreamed into Qt.

Other plans are to use KConfigXT for the complete configuration of
KWin. This
is already used (since 4.10) for KWin effects and would allow to easily
integrate our configuration interfaces in your available configuration
module.
With KConfigXT the configuration modules basically consist of .ui
files and an
xml description of the config values. (Note: the KCMs belonging to
KWin do not
support a changed binary name.)

Apart from that I want to have everything which is UI to be done in QML.

*Final Remarks*
This patch is a personal service provided by me and is not officially
supported by KDE. I will not update the patch on a regular basis,
though I
intend to update it for each release cycle once a new version has been
branched. This also means that I cannot guarantee that everything works
correctly. If you hit a bug related to this patch let me know, but please
don't open a report on bugs.kde.org.

I hope this patch is helpful for you. If you need improvements you are of
course more than welcome to contribute to KWin :-)

A Merry Christmas to you and a happy and successful new year 2013.

Kind Regards
Martin Gräßlin
KWin Maintainer

[1] http://quickgit.kde.org/?p=clones%2Fkde-workspace%2Fgraesslin%2Fkde-
workspace.git&a=commitdiff&h=2f23192fe2658b9ecde005db40b2ec366b3e18d4&hp=60844a5744b04483e86bff299713e1e56df52a4a
[2] http://quickgit.kde.org/?p=kde-
workspace.git&a=shortlog&h=60844a5744b04483e86bff299713e1e56df52a4a
[3] http://quickgit.kde.org/?p=clones%2Fkde-workspace%2Fgraesslin%2Fkde-
workspace.git
[4] http://techbase.kde.org/Projects/KWin/Build_Options
[5] http://community.kde.org/KWin/Building
[6] http://techbase.kde.org/Development/Tutorials/KWin/WindowSwitcher
[7] http://techbase.kde.org/Development/Tutorials/KWin/Scripting


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQ1bZrAAoJEC8yRjM4uE2tnvUH/RGiVtqrNe/L9ie8mcs9eZ6S
5KFFSpn0AxaUkVmbyX2fGKCnJXMiYjlupcgs/ImcZVv5e0386ae/m9lZSDo41cqc
WX6xQ5fEdPhj2VXE1bEKdLi8QQRgeNJpH6YzYpw8sud9HaA3pytEMy6MnyzABRp0
YX2WKQR9MdVh9pC7kQv6O2hrnIo0jew4zKz7aCnHOqbGq7MkCCbGM6dc2dEWcNJ4
PugTNtzylW1yk8+/kmiV+0iKs0w1EwbIqg+s4PR5XRVpkZXakjTAEZdnTlSsiWBc
jdTkODPKxbfWDzepxyGNuieVa0k7MO4zGsi89Mjf53MdVqpm15fDIcEE+2KIQ1w=
=TlJu
-----END PGP SIGNATURE-----

Jerome Leclanche

unread,
Dec 22, 2012, 8:37:41 AM12/22/12
to razo...@googlegroups.com
This is amazing news. I have to run out for the day but when I get back I'll work on a PKGBUILD and put it up in the AUR.

J. Leclanche



--
You received this message because you are subscribed to the Google
Groups "Razor-qt" group.
For more options, visit this group at
http://groups.google.com/group/razor-qt?hl=en

PICCORO McKAY Lenz

unread,
Dec 22, 2012, 9:31:12 PM12/22/12
to razo...@googlegroups.com, venenuxsarisari, venenuxmassenkoh
IMPORTANT:  umm requerimients are still in qt 4.6 or may hav' go to 4.7/4.8/5.X ?

everibody knows that if more lines of code hav, more cou cicles will need to run software.. so if requeriments are over 4.7+ so razorqt not will be so light as there are ..

currently LXDE are amazing around ram usage and performance..  and second razorqt due styling are superior and look-n-feel of razorqt are superior over lxde! (gtk its very ugly guys)

all of there facts are very very important

if QML are the basic for styling, so then razorqt-appereance may have in future the complete look and feel of WM?

great news.. for razor qt desktop .. hell yeah! but dont forgett the facts ...
--
Lenz McKAY Gerardo (PICCORO)

Alec Moskvin

unread,
Dec 25, 2012, 12:07:43 AM12/25/12
to razo...@googlegroups.com
If anyone is interested in a Gentoo ebuild, I created one:

https://gist.github.com/4371667

It currently seems to work fine with kdelibs 4.9. Unfortunately, it's
not possible to have both KWin and this one since a number of files
overlap.

Jerome Leclanche

unread,
Jan 9, 2013, 12:39:37 PM1/9/13
to razo...@googlegroups.com
I tried getting a PKGBUILD working but kdelibs is an absolute pain to work with...
I'll give it another shot on a plain install.

J. Leclanche


Jerome Leclanche

unread,
Jan 9, 2013, 9:38:31 PM1/9/13
to razo...@googlegroups.com
Ok so I managed to get it building and installing, however I get a host of errors and it crashes.


Any idea? I dont know why it's looking for kglobalaccel... did I miss a flag?

J. Leclanche

Alec Moskvin

unread,
Jan 10, 2013, 10:07:02 AM1/10/13
to razo...@googlegroups.com
I use KDE applications and have kglobalaccel installed, so maybe it
still has a runtime dependency on it? I haven't tried with kdelibs and
nothing else.

Alec

PICCORO McKAY Lenz

unread,
Jan 10, 2013, 11:11:36 AM1/10/13
to razo...@googlegroups.com
theres a code for shorcut keys comunicatino still in these code.. must be depured
Reply all
Reply to author
Forward
0 new messages