Commit graph

2576 commits

Author SHA1 Message Date
Sandro Giessl
b356373b1e remove unnecessary includes
svn path=/trunk/kdebase/kwin/; revision=400264
2005-03-24 16:34:08 +00:00
Sandro Giessl
a8eb2711fa Port to KCommonDecoration; add menu button; less flicker in the titlebar
svn path=/trunk/kdebase/kwin/; revision=400263
2005-03-24 16:33:13 +00:00
Luboš Luňák
c32d95f0f2 Since hasTransient() can search bottom-up or top-bottom depending
on which is cheaper, make sure to block recursion for the proper
client that has been already checked.
BUG: 94800

svn path=/trunk/kdebase/kwin/; revision=400008
2005-03-23 14:52:54 +00:00
Luboš Luňák
a950f75673 When activation is forced, always request focus for the window, even
with unreasonable focus policies. Fixes focusing kicker applets.
BUG: 96028

svn path=/trunk/kdebase/kwin/; revision=399988
2005-03-23 13:49:50 +00:00
Stephan Binner
ca22bd2f4e compile (with builddir!=srcdir)
svn path=/trunk/kdebase/kwin/; revision=399977
2005-03-23 12:42:34 +00:00
Sandro Giessl
2fd48c13e9 No need for a hard reset for SettingButtons changes, KCommonDecoration can handle button reset.
svn path=/trunk/kdebase/kwin/; revision=399854
2005-03-22 23:08:50 +00:00
Sandro Giessl
e70e385bf9 add copyright...
svn path=/trunk/kdebase/kwin/; revision=399851
2005-03-22 23:06:32 +00:00
Sandro Giessl
f8f7122877 Port to KCommonDecoration. Also tried to eliminate the flickering by
not using PaletteBackground background mode for the widget anymore and instead
painting everything myself (also results in ~35% less rendering time for
100000 repaints).

svn path=/trunk/kdebase/kwin/; revision=399849
2005-03-22 23:03:13 +00:00
Script Kiddy
3538912028 CVS_SILENT made messages (.desktop file)
svn path=/trunk/kdebase/ksysguard/; revision=399711
2005-03-22 13:52:14 +00:00
Sandro Giessl
8ee563139d um... fix titleRect()
svn path=/trunk/kdebase/kwin/; revision=399602
2005-03-22 00:15:29 +00:00
Sandro Giessl
1b1d7df406 more const-correctness and titleRect() convenience method...
svn path=/trunk/kdebase/kwin/; revision=399599
2005-03-21 23:45:54 +00:00
Sandro Giessl
6b0a36f911 Port Web to KCommonDecoration, add buttons keep above/below others, shade, menu while I'm at it...
svn path=/trunk/kdebase/kwin/; revision=399527
2005-03-21 19:57:25 +00:00
Sandro Giessl
079ac8c9f9 take the button width into account for the calculation of minBtnHideWidth
svn path=/trunk/kdebase/kwin/; revision=399466
2005-03-21 16:33:59 +00:00
Sandro Giessl
77567c923c port quartz to KCommonDecoration
svn path=/trunk/kdebase/kwin/; revision=399465
2005-03-21 15:53:41 +00:00
Sandro Giessl
f1ad43864f - Add KCommonDecoration::isLeft() for Quartz.
- Hide buttons one by another when the window size shrinks below a certain
  width. Implemented so that Quartz doesn't use any functionality, but it's
  quite useful in other decos, too -> enabled by default.
  Minimum size calculation still needs some tweaking...

svn path=/trunk/kdebase/kwin/; revision=399463
2005-03-21 15:47:39 +00:00
Sandro Giessl
6a8e5c41d8 Add an option for a titlebar-colored window border. I think it looks better than
before, enabled by default.

FEATURE: 98922

svn path=/trunk/kdebase/kwin/; revision=399363
2005-03-20 22:24:04 +00:00
Sandro Giessl
cd66337cff now do all painting through cached pixmaps and only paint things that are
in the PaintEvent region. makes it a bit easier to modify the look and saves
another ~15% for 100000 repaint resp. 10000 caption changes... :)

svn path=/trunk/kdebase/kwin/; revision=399339
2005-03-20 21:07:11 +00:00
Sandro Giessl
a80216662a oups... no shadow.cpp anymore.
svn path=/trunk/kdebase/kwin/; revision=399004
2005-03-19 16:30:34 +00:00
Sandro Giessl
ab29b1a699 forgot to remove shadow.h/.cpp
svn path=/trunk/kdebase/kwin/; revision=399002
2005-03-19 16:17:56 +00:00
Sandro Giessl
4e10228f75 - minor changes to button drawing
- button icon changes: don't use recolored+scaled .xpm files as icons, instead
  create bitmaps on the fly in code which can easily be colored and don't need
  to be scaled... looks much cleaner IMHO.

svn path=/trunk/kdebase/kwin/; revision=399001
2005-03-19 16:16:33 +00:00
Sandro Giessl
50a21c6be9 minor titlebar edge cleanup
remove the ShadowEngine... it is just too slow and even makes e.g. kmail feel
slower when dragging messages over the folder list. have a bogus shadow
instead (various drawText calls with blended colors) which also looks quite nice and
is twice as fast. Still no kwin decoration seems to feel as fast as metacity when it
comes to caption changes such as in the kmail example... This is something that should
be looked into IMHO.

svn path=/trunk/kdebase/kwin/; revision=398994
2005-03-19 16:01:36 +00:00
Sandro Giessl
c77a4202fb inform buttons of state change
svn path=/trunk/kdebase/kwin/; revision=398989
2005-03-19 15:44:10 +00:00
Sandro Giessl
b4d6b5fd91 slightly modified the look of the titlebar gradient
svn path=/trunk/kdebase/kwin/; revision=398179
2005-03-16 20:00:13 +00:00
Sandro Giessl
07540ec656 base shadow code on khtml's shadow code which is faster
svn path=/trunk/kdebase/kwin/; revision=398112
2005-03-16 15:21:34 +00:00
Sandro Giessl
87b57d4e7f no need to create as well the inactive as the active caption buffer. now only create them when needed...
svn path=/trunk/kdebase/kwin/; revision=397838
2005-03-15 16:09:49 +00:00
Sandro Giessl
5cb8a385e9 cache button icons in the handler. creation of 1000 decorations took 26s
before, now it's 10s... probably saves some memory, too.

svn path=/trunk/kdebase/kwin/; revision=397810
2005-03-15 14:07:37 +00:00
Dirk Mueller
e7ad67c64b fix nonreproducible crash
svn path=/trunk/kdebase/kwin/; revision=397585
2005-03-14 18:23:13 +00:00
Sandro Giessl
352beb9070 make reset abstract, add forgotten virtual...
svn path=/trunk/kdebase/kwin/; revision=397517
2005-03-14 11:54:49 +00:00
Sandro Giessl
af8ea39ba9 insert catalogue kwin_lib. it seems to me this is the best place for it...
svn path=/trunk/kdebase/kwin/; revision=397488
2005-03-14 09:50:19 +00:00
Sandro Giessl
8a64612f7b do not unnecessarily rebuild everything in reset(), makes deco recreation a bit faster. still slower than other decos due to the expensive smoothScale, image recoloring etc. - this should be cached
svn path=/trunk/kdebase/kwin/; revision=397486
2005-03-14 09:39:09 +00:00
Sandro Giessl
7f9e658fb3 save reset calls in setSize() etc., inform buttons about what has changed in reset() so they can better optimize for performance
svn path=/trunk/kdebase/kwin/; revision=397485
2005-03-14 09:33:29 +00:00
Sandro Giessl
66ee8c3b4d add KWIN_EXPORT, thanks willem boschman
svn path=/trunk/kdebase/kwin/; revision=397197
2005-03-13 11:54:17 +00:00
Sandro Giessl
c62cf962d6 do not use statics to access the handler
svn path=/trunk/kdebase/kwin/; revision=397053
2005-03-12 20:13:51 +00:00
Sandro Giessl
64e8b52430 keep cached pixmaps in the handler so not every decoration needs to create its own pixmaps...
svn path=/trunk/kdebase/kwin/; revision=397041
2005-03-12 19:31:31 +00:00
Sandro Giessl
45d3cfaa36 speed up rendering a bit more by reducing the number of unnecessary QPainter calls.
svn path=/trunk/kdebase/kwin/; revision=396916
2005-03-12 09:58:35 +00:00
Sandro Giessl
6915c12e5f optimize the painting of title bar tiles a bit...
svn path=/trunk/kdebase/kwin/; revision=396915
2005-03-12 09:34:44 +00:00
Sandro Giessl
0bcfea20c9 add decoration recreation test
svn path=/trunk/kdebase/kwin/; revision=396795
2005-03-11 21:08:27 +00:00
Sandro Giessl
cc148f1762 Add message extraction for KCommonDecoration. Could someone who knows Automake/i18n check if this is correct, please?
svn path=/trunk/kdebase/kwin/; revision=396775
2005-03-11 20:20:00 +00:00
Sandro Giessl
74dda10aaa Port Plastik to KCommonDecoration.
svn path=/trunk/kdebase/kwin/; revision=396773
2005-03-11 20:14:04 +00:00
Sandro Giessl
37992c3cb1 Import KCommonDecoration/KCommonDecorationButton. They ease development of decorations
by implementing parts of KDecoration which are error prone and common for most decorations.

Plastik will be ported to it. It should be possible to port at least Web, System++, RISC OS,
Quartz, Laptop, KStep, KDE 2, CDE easily - I will have a look at this some time. Perhaps also
Redmond, Modern System, Keramik, IceWM, Glow. I'm sure they will gain maintainability...

I'm open to discussions on the API...
CCMAIL: kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=396767
2005-03-11 20:10:46 +00:00
Sandro Giessl
721415e1fc do not show the preview label since this is not relevant and only slows down the test
svn path=/trunk/kdebase/kwin/; revision=396656
2005-03-11 14:31:45 +00:00
Sandro Giessl
f80d4f2160 add caption and resize tests.
svn path=/trunk/kdebase/kwin/; revision=396655
2005-03-11 14:28:19 +00:00
Sandro Giessl
b10f0059c7 Import a little tool which helps comparing the performance of decorations.
svn path=/trunk/kdebase/kwin/; revision=396399
2005-03-10 16:57:04 +00:00
Luboš Luňák
4f43e53955 Fix #101209.
BUG: 101209

svn path=/trunk/kdebase/kwin/; revision=396387
2005-03-10 16:29:00 +00:00
Luboš Luňák
678ba0894d Some cleanups.
svn path=/trunk/kdebase/kwin/; revision=396376
2005-03-10 15:55:46 +00:00
Luboš Luňák
c025cb57ef Redo the fix for #95731 - when a window is manually raised above another
window, bring it up to that window's layer only if the layer is ActiveLayer
(i.e. fullscreen).
BUG: 100762

svn path=/trunk/kdebase/kwin/; revision=396099
2005-03-09 15:04:32 +00:00
Script Kiddy
ec5d466c69 CVS_SILENT made messages (.desktop file)
svn path=/trunk/kdebase/kcontrol/; revision=395420
2005-03-07 09:05:40 +00:00
Luboš Luňák
e808718c0a Prefer keeping fixed width when keeping aspect ratio.
BUG: 87298

svn path=/trunk/kdebase/kwin/; revision=393796
2005-02-28 13:44:19 +00:00
Luboš Luňák
47075ef04e Break unnecessary transiency relations caused by many group transient windows.
Avoids exponentially expensive operations in KWin.
CCBUG: 95231

svn path=/trunk/kdebase/kwin/; revision=393793
2005-02-28 13:43:00 +00:00
Thomas Lübking
90e5b03c31 BUGS:99832
BUGS:99833
BUGS:93380
kompmgr now should get proper window shapes, removing several artefact bugs
just swapping two lines in this file

svn path=/trunk/kdebase/kwin/; revision=393629
2005-02-27 20:49:13 +00:00