Commit graph

59 commits

Author SHA1 Message Date
Martin Gräßlin
60c42b7a34 s/KLocale/KLocalizedString/g
Many headers included KLocale to use i18n and co. But those methods are
defined in KLocalizedString and not in KLocale.

With KF5 klocale.h does no longer include KLocalizedString causing lots
of compile errors.
2013-03-07 13:59:15 +01:00
Martin Gräßlin
aa34dbd059 Remove the fallback to Platik in case defaultDepth is < 8
Plastik has been removed and the new Aurorae has the same requirement as
Oxygen. This fallback was anyway useless given that KWin nowadays uses
raster paint engine by default and hardly anything would work with such a
small QPixmap::defaultDepth().

REVIEW: 106613
2012-10-25 11:19:26 +02:00
Martin Gräßlin
49cce8dede Build option to disable the Oxygen window decoration
This build option is added to make it easier to build just KWin without
kde-workspace. This is a common requirement by developers wanting to
contribute to KWin and only want to build KWin but use everything else
from their normal distribution.

Building KWin standalone is very often difficult due to Oxygen. If the
library has changed it is not possible to build just KWin without also
building the workspace libs and if you do so you run into ABI problems
when trying to start KWin - either the decoration or the style is
crashing due to not matching libraries.

To circumvent this common issue for new developers this build option
is introduced to just exclude the Oxygen window decoration and defaulting
to Plastik.

Of course by default this option is turned ON, so that the Oxygen
decoration gets build. By default there is no change at all.

REVIEW: 106303
2012-10-04 17:09:39 +02:00
Montel Laurent
e08f67ff6e Make it compile with "-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS" 2011-05-22 13:53:25 +02:00
Martin Gräßlin
cf1ab4e330 Do not try to load plugin when building without decos 2011-04-29 12:34:22 +02:00
Martin Gräßlin
f97c92fde9 KWin does not require a decoration plugin any more
With config option "NoPlugin" in group "Style" it is possible to
no request that KWin should be run without a decoration plugin.
This is a change for Plasma Active to properly support no decorations.

As well if a decoration plugin cannot be loaded, KWin will no longer
exit, but continue to run just without a decoration. As a nice
side-effect changes in Oxygen no longer destroy my kwin build ;-)

BUG: 224440
FIXED-IN: 4.7.0
CCMAIL: sebas@kde.org
2011-04-28 16:05:23 +02:00
Martin Gräßlin
0a7e48f7aa KWin uses kdelibs coding style. 2011-01-31 20:07:03 +01:00
Hugo Pereira Da Costa
8eecf6375c Moved Nitrogen to Oxygen deco, and removed Nitrogen.
It is believed that Nitrogen is versatile enough to satisfy most users, and that it is 
good-looking enough to make Nuno happy.

CCMAIL: kwin@kde.org
BUG: 160627

svn path=/trunk/KDE/kdebase/workspace/; revision=1023636
2009-09-15 06:25:06 +00:00
Lucas Murray
47ef5f02cc Replace Ozone with Nitrogen as the default decoration and remove Ozone.
CCMAIL:kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=1016904
2009-08-29 10:12:00 +00:00
Luboš Luňák
e9b46ee24c Welcome ... er ... Ozone, the new default KWin decoration, that will
be a fork of the Oxygen decoration with additional features that
the Oxygen developers don't want to have in Oxygen. See README
or #152030 for why they prefer it this way.
CCBUG: 152030


svn path=/trunk/KDE/kdebase/workspace/; revision=795243
2008-04-09 15:32:58 +00:00
Luboš Luňák
01bf6cbb4c License cleanup - add headers where missing, be explicit about GPL
being v2+ (right now it says just GPL, which according to GPL itself
means any GPL). Decoration clients will come later.
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=742302
2007-11-27 19:40:25 +00:00
Fathi Boudra
ae357add60 Set oxygen as kwin decoration default plugin
svn path=/trunk/KDE/kdebase/workspace/; revision=732861
2007-11-04 22:47:22 +00:00
Luboš Luňák
f52b8e48cd branches/work/kwin_composite becomes new trunk kwin.
svn path=/trunk/KDE/kdebase/workspace/; revision=659202
2007-04-29 17:35:43 +00:00
Luboš Luňák
2b7e1f4993 Remove kwin, kwin_composite will become new trunk kwin, missing merges
from trunk will be merged in.


svn path=/trunk/KDE/kdebase/workspace/; revision=659200
2007-04-29 17:34:49 +00:00
Luboš Luňák
e3b865cd5f namespace KWinInternal -> KWin - shorter typing of names in gdb, yay
svn path=/branches/work/kwin_composite/; revision=650770
2007-04-05 12:07:35 +00:00
Laurent Montel
5725624c8b #include <q...h> -> #include <Q...>
svn path=/trunk/KDE/kdebase/workspace/; revision=540496
2006-05-13 16:33:18 +00:00
Laurent Montel
5de42c4b68 Remove qt3_support into qstring
svn path=/trunk/KDE/kdebase/workspace/; revision=463544
2005-09-24 12:26:22 +00:00
Frank Karlitschek
5640dbc81b new default window decoration
svn path=/trunk/kdebase/kwin/; revision=347287
2004-09-17 21:09:28 +00:00
Luboš Luňák
87f8a85083 Added KDecorationFactory::checkRequirements(), which allows the decoration
plugin to check what the core supports, i.e. the opposite of supports().
Not used yet, but apparently will be needed e.g. for the new tranparency.

svn path=/trunk/kdebase/kwin/; revision=269291
2003-11-24 14:22:04 +00:00
Luboš Luňák
10f405c73d Merging kwin core from kwin_iii back to HEAD.
svn path=/trunk/kdebase/kwin/; revision=251608
2003-09-16 19:28:03 +00:00
Luboš Luňák
92cc980241 Make sure people can switch between HEAD and kwin_iii.
svn path=/trunk/kdebase/kwin/; revision=246934
2003-08-30 18:02:59 +00:00
Dirk Mueller
961f8f2173 typo fixes
svn path=/trunk/kdebase/kcontrol/; revision=233092
2003-06-22 23:37:37 +00:00
Kevin Puetz
cae8f9da18 commit fix for jcook
create_ptr and old_create_ptr have incompatible types, apparently
some compilers don't the type problem and complain (2.95.4 at least)

svn path=/trunk/kdebase/kwin/; revision=227517
2003-05-24 02:33:48 +00:00
Luboš Luňák
416f10d743 Nasty bug (not that actually anybody uses it though).
svn path=/trunk/kdebase/kwin/; revision=227281
2003-05-22 16:38:33 +00:00
Dirk Mueller
e3d4b7625c don't interpret format strings
svn path=/trunk/kdebase/kwin/; revision=199217
2003-01-12 13:00:03 +00:00
Fredrik Höglund
de4206660d Fixed the display depth test so we get the right default style on
24/32 bpp. Apparently QPixmap::defaultDepth() was called before
the screen info had been initialized in Qt.

svn path=/trunk/kdebase/kwin/; revision=186283
2002-10-28 22:54:25 +00:00
Karol Szwed
25e04fe680 Switch over to Keramik deco, (or Quartz for 8bpp visuals)
svn path=/trunk/kdebase/kwin/; revision=185724
2002-10-26 14:34:46 +00:00
Luboš Luňák
88c7d513f6 Use KLibrary::hasSymbol() before actually using symbol() in order to
avoid warning from KLibrary in case the symbol doesn't exist.

svn path=/trunk/kdebase/kwin/; revision=178239
2002-09-16 14:14:29 +00:00
Till Krech
7c1d536ad3 make it compile again...
RCS file: /home/kde/kdebase/kwin/client.h,v
retrieving revision 1.82
diff -u -p -r1.82 client.h
--- client.h    2002/07/05 20:00:02     1.82
+++ client.h    2002/07/06 02:04:23
@@ -155,7 +155,7 @@ public:
     bool isDesktop() const;
     bool isDock() const;
     bool isTool() const;
-    bool isMenu() const;
+    bool isTopMenu() const;

     bool isResizable() const;

Index: plugins.cpp
===================================================================
RCS file: /home/kde/kdebase/kwin/plugins.cpp,v
retrieving revision 1.30
diff -u -p -r1.30 plugins.cpp
--- plugins.cpp 2002/07/05 20:05:22     1.30
+++ plugins.cpp 2002/07/06 02:04:23
@@ -119,7 +119,7 @@ bool PluginMgr::loadPlugin(QString nameS

     void* create_func = library->symbol("create");
     if(create_func) {
-        create_ptr = (Client* (*)(Workspace *ws, WId w, NET::WindowType, NET::WindowType))create_func                                   ;
+        create_ptr = (Client* (*)(Workspace *ws, WId w, NET::WindowType))create_func;
     }
     create_func = library->symbol("allocate");
     if(create_func) {

svn path=/trunk/kdebase/kwin/; revision=165118
2002-07-06 02:05:46 +00:00
Luboš Luňák
1fab5c76ce NET::Menu -> NET::TopMenu, and make NET::Menu mean what it is supposed to mean.
+ backward compatibility hack

svn path=/trunk/kdebase/kwin/; revision=165076
2002-07-05 20:05:22 +00:00
Matthias Ettrich
d05c588ffb part of Karol's fix: keep the old library in loadPlugin() so that
updatePlugin() can call the reset() function.

svn path=/trunk/kdebase/kwin/; revision=141202
2002-03-05 19:02:24 +00:00
Matthias Ettrich
dd29e3723c faster configuration changes. No crashes when reconfiguring kwin
several times with invalid plugin strings (happens when running
today's kpersonalizer)

svn path=/trunk/kdebase/kwin/; revision=139725
2002-03-01 01:34:54 +00:00
David Faure
34bbc5e457 qWarning -> kdWarning
svn path=/trunk/kdebase/kwin/; revision=138408
2002-02-24 18:16:45 +00:00
Simon Hausmann
71b35e9a0c - use KLibrary/KLibLoader instead of libltdl
svn path=/trunk/kdebase/kwin/; revision=138343
2002-02-24 10:41:20 +00:00
Adrian Schroeter
aebf39c8df compile fix, since KDE has no own ltdl anymore.
old libtool ltdl.h have #defines for lt_ptr_t. New ones are simply using
lt_ptr for lt_ptr_t.

svn path=/trunk/kdebase/kwin/; revision=138132
2002-02-23 00:41:48 +00:00
Stephan Kulow
e3e09f533d use kwin_ instead of libkwin
svn path=/trunk/kdebase/kwin/; revision=137446
2002-02-19 16:56:16 +00:00
Daniel Molkentin
3cba456ff4 QFile::encodeName() here, too
svn path=/trunk/kdebase/kwin/; revision=129232
2001-12-31 01:54:45 +00:00
Dirk Mueller
375f175fbb CVSSILENT: fixincludes
svn path=/trunk/kdebase/khotkeys/; revision=129081
2001-12-29 17:33:05 +00:00
Karol Szwed
97b0ee49e1 Default style update:
- Modifying the default style to use the new kwin plugin interface for proper
  resource management.
- The new default style looks nearly the same, but adds several nice features
  such as titlebar height and button position customisation among others,
  and adds a config module for configuration.
- kwin plugin loader modified to reflect the new default plugin change. The
  old default will be removed shortly.
- oh, and never ever flicker :)

svn path=/trunk/kdebase/kwin/; revision=100839
2001-06-07 11:35:06 +00:00
Dirk Mueller
e3766f1c3b Xinerama support (patch by Balaji Ramani <balaji@spinnakernet.com>)
svn path=/trunk/kdebase/kwin/; revision=96584
2001-05-12 00:33:43 +00:00
Matthias Ettrich
6c7cd20690 tabify
svn path=/trunk/kdebase/kwin/; revision=93937
2001-04-25 16:16:18 +00:00
Waldo Bastian
57f4808d0f Make resource management in clients easier with these three functions:
init() called after client got loaded
deinit() called when client is about to get unloaded
reset() called once before Options::resetClients() is emitted

svn path=/trunk/kdebase/kwin/; revision=93372
2001-04-22 05:39:17 +00:00
Michael Matz
a9522c8834 changes for ltdl.h (when I remove that backward compatible POSIX breaking
hack).

svn path=/trunk/kdebase/kwin/; revision=90718
2001-04-06 04:04:51 +00:00
Matthias Elter
c48346551b Patch by Matthias Ettrich:
Changing the focus policy does not reset all client styles.

svn path=/trunk/kdebase/kwin/; revision=83927
2001-02-21 18:29:24 +00:00
Waldo Bastian
2f90225543 Put stuff in KWinInternal namespace.
Export client.h, workspace.h and options.h so that people can write plugins.

svn path=/trunk/kdebase/kwin/; revision=83707
2001-02-20 01:20:38 +00:00
Waldo Bastian
460c6e1d36 Don't crash when changing decorations with RMB.
svn path=/trunk/kdebase/kwin/; revision=83040
2001-02-15 23:19:07 +00:00
Matthias Ettrich
3deaa52496 cooperate with qt-2.2.4 (the deadkey popup fix) and qt-copy.
Don't update the frame decoration if it didn't change, I don't want
flicker when changing the focus policy.

svn path=/trunk/kdebase/kwin/; revision=80891
2001-02-01 01:13:44 +00:00
Waldo Bastian
8190667206 Let reconfigure() reparse plugin setting.
svn path=/trunk/kdebase/kwin/; revision=78491
2001-01-16 23:54:45 +00:00
David Faure
d3c59a34aa Look for plugins using KLibLoader::findLibrary.
Makefiles will be committed silently :)

svn path=/trunk/kdebase/kwin/; revision=73404
2000-12-04 18:47:19 +00:00
Matthias Ettrich
6dacbd0112 tool window handling for the default style
visible dialogs for stays-on-top fullscreen windows (helps with Konqueror's dialogs)
Fixed lock with Alt-Tab box plus accelerator

svn path=/trunk/kdebase/kwin/; revision=65241
2000-09-25 15:30:51 +00:00