Commit graph

111 commits

Author SHA1 Message Date
Lucas Murray
a44a34bb3e Fix window switching mode of present windows not displaying the contents of minimized windows when "ignore minimized" is enabled.
svn path=/trunk/KDE/kdebase/workspace/; revision=874297
2008-10-21 07:27:19 +00:00
Lucas Murray
9f8df08268 Added option to hide minimized windows in the present windows effect. Patch by Bart Cerneels.
svn path=/trunk/KDE/kdebase/workspace/; revision=874292
2008-10-21 07:15:35 +00:00
Lucas Murray
d2f83ab8f7 Fix fading of minimized windows when deactivating the present windows effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=871588
2008-10-15 08:23:52 +00:00
Luboš Luňák
1d2c54edcc Support for proper effect reconfiguration instead of reloading them.
Fixes e.g. the global animation combo not taking effect.


svn path=/trunk/KDE/kdebase/workspace/; revision=866903
2008-10-02 09:27:32 +00:00
Lucas Murray
b7122a91b1 Prevent crash when cancelling present windows when no window is highlighted.
Prevent the tab key from being added to the filter.
BUG: 171951

svn path=/trunk/KDE/kdebase/workspace/; revision=866566
2008-10-01 10:45:20 +00:00
Lucas Murray
68d958c237 Added reset methods to WindowMotionManager.
Fixed bug in present windows when if there is only one window on a Xinerama screen it is zoomed into nothingness when using the natural layout.
CCBUG: 171812

svn path=/trunk/KDE/kdebase/workspace/; revision=865798
2008-09-29 02:25:02 +00:00
Lucas Murray
db8e8365da Prevent present windows from storing data for a NULL window.
CCBUG: 171593

svn path=/trunk/KDE/kdebase/workspace/; revision=864365
2008-09-24 15:53:08 +00:00
Lucas Murray
7f690db225 Correct fix to prevent present windows from crashing.
CCMAIL: ubuntu@martin-graesslin.com

svn path=/trunk/KDE/kdebase/workspace/; revision=863746
2008-09-23 03:16:36 +00:00
Martin Gräßlin
e353af4844 Prevent crashing when a window is closed.
CCMAIL: <lmurray@undefinedfire.com>

svn path=/trunk/KDE/kdebase/workspace/; revision=863593
2008-09-22 16:13:20 +00:00
Lucas Murray
51aef64cd7 Added motion dynamic physics helper classes to the KWin effects API. These
classes are intended to be used to help effect authors move windows across
the screen smoothly and naturally.

Although not 100% complete the classes can be used for 2D operations in its
current state, an example of which is the included present windows update.
These classes can be expanded upon when the new modifiers are required.

I would like a generic, template-based motion manager class that can be used
for non-window objects as well as another 3D-enabled manager to be available
sometime in the future.

CCMAIL: kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=863561
2008-09-22 13:03:00 +00:00
Luboš Luňák
08571b2f52 Do not use 'assert( false )', with NDEBUG that is a no-op and
results in warnings about missing return.


svn path=/trunk/KDE/kdebase/workspace/; revision=861879
2008-09-17 11:44:51 +00:00
Lucas Murray
034e66ae96 Randomize direction even when filling gaps, fixes bug when all windows are the same size.
svn path=/trunk/KDE/kdebase/workspace/; revision=861791
2008-09-17 08:19:16 +00:00
Lucas Murray
ac3ac459e8 Fixed type and slightly increased fade time.
svn path=/trunk/KDE/kdebase/workspace/; revision=857700
2008-09-06 07:22:25 +00:00
Lucas Murray
36977673b3 Don't make excessive animationTimer() calls.
svn path=/trunk/KDE/kdebase/workspace/; revision=857091
2008-09-04 16:59:14 +00:00
Lucas Murray
e992879263 Don't display utility windows in present windows as well, that should be everything.
BUG: 152341

svn path=/trunk/KDE/kdebase/workspace/; revision=855832
2008-09-01 15:04:41 +00:00
Luboš Luňák
2a87593638 Add a global configuration option for animation speed. See description
of Effect::animationTime() for how-to-use.
TODO: Effects need to reload config after doing the change in the kcm.
NOTE: Default TimeLine constructor now creates invalid object, it is
necessary to explicitly call setDuration() in order to ensure all
animations respect this setting.

CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=854690
2008-08-30 07:25:54 +00:00
Luboš Luňák
8e5f95a9d6 Make a more explicit distinction between using normalized and non-normalized
texture coordinates - it cost me hours to find out why something was misdrawing :(.


svn path=/trunk/KDE/kdebase/workspace/; revision=854546
2008-08-29 18:54:28 +00:00
Lucas Murray
faf7477fdb Force window switching mode to use the regular grid as well as putting all windows on the same screen if using a multi-monitor system. Also fixed the incorrectly highlighted window when window switching is first activated.
svn path=/trunk/KDE/kdebase/workspace/; revision=853112
2008-08-27 08:29:09 +00:00
Lucas Murray
7ce5cea00d Allow clicking of windows when in window switching mode.
svn path=/trunk/KDE/kdebase/workspace/; revision=852767
2008-08-26 14:41:26 +00:00
Lucas Murray
14dd4db702 Rearrange when a new window is displayed.
svn path=/trunk/KDE/kdebase/workspace/; revision=852749
2008-08-26 14:06:09 +00:00
Lucas Murray
255889ca65 FEATURE: Two new layout modes for the present windows effect
BUG: Keyboard operation now works correctly in present windows on multi-monitor setups

svn path=/trunk/KDE/kdebase/workspace/; revision=852066
2008-08-25 09:17:15 +00:00
Lucas Murray
31cc37e089 Switched over duration counters to the TimeLine class.
svn path=/trunk/KDE/kdebase/workspace/; revision=850953
2008-08-22 16:25:40 +00:00
Luboš Luňák
e57590dc64 Fix x/y mismatch, patch by David Benjamin.
BUG: 168995


svn path=/trunk/KDE/kdebase/workspace/; revision=846447
2008-08-13 13:53:36 +00:00
Martin Gräßlin
ca14652fc0 Present windows effect can be used for window switching (alt+tab) as well.
CCMAIL: kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=846399
2008-08-13 12:25:19 +00:00
Lucas Murray
00c95be210 Added text alignment support to paintText() functions
svn path=/trunk/KDE/kdebase/workspace/; revision=842497
2008-08-05 12:26:16 +00:00
Lucas Murray
0bfb2ccafe Make the present windows animation last a little bit longer
svn path=/trunk/KDE/kdebase/workspace/; revision=841336
2008-08-03 08:21:03 +00:00
Lucas Murray
93592c3d98 Only upscale small windows in the present windows effect.
BUG: 163105


svn path=/trunk/KDE/kdebase/workspace/; revision=822547
2008-06-20 16:10:13 +00:00
Luboš Luňák
aff5b2c2c5 Lay out windows on all monitors in Xinerama, from "Lucas Murray" <admin@undefinedfire.com>
BUG: 157952


svn path=/trunk/KDE/kdebase/workspace/; revision=819104
2008-06-10 15:49:49 +00:00
Luboš Luňák
6e6afed817 Don't rearrange windows if only filtering removed some of them, so that they don't
possibly jump to the freed positions.


svn path=/trunk/KDE/kdebase/workspace/; revision=818778
2008-06-09 15:46:57 +00:00
Luboš Luňák
602244e3a5 Use a convenience XRenderPicture constructor instead of hardcoding
XRender Formats.


svn path=/trunk/KDE/kdebase/workspace/; revision=805361
2008-05-08 10:08:10 +00:00
Luboš Luňák
5efac21537 XRenderPicture, a wrapper around XRender's Picture, which
should act just like Picture, except for proper initialization
and resource freeing (i.e. it's sane and easy from C++ point of view).


svn path=/trunk/KDE/kdebase/workspace/; revision=805085
2008-05-07 14:43:13 +00:00
Luboš Luňák
b840fa0792 Disable copying by value for GLTexture, as it wouldn't work anyway.
CCMAIL: Rivo Laks <rivolaks@hot.ee>


svn path=/trunk/KDE/kdebase/workspace/; revision=805056
2008-05-07 13:05:46 +00:00
Luboš Luňák
f9ce0427e8 Do not activate the effect with nothing to show.
svn path=/trunk/KDE/kdebase/workspace/; revision=804228
2008-05-05 11:58:53 +00:00
Malcolm Hunter
be582d3a1a Typo fixes
svn path=/trunk/KDE/kdebase/workspace/; revision=798922
2008-04-19 22:36:47 +00:00
Louai Al-Khanji
fe3f250020 Whoops, these are supposed to be on by default.
svn path=/trunk/KDE/kdebase/workspace/; revision=791340
2008-03-29 02:38:17 +00:00
Louai Al-Khanji
32bc8c8d07 Make window caption presentation configurable and turned off by default.
svn path=/trunk/KDE/kdebase/workspace/; revision=791193
2008-03-28 17:26:04 +00:00
Luboš Luňák
cff2b0e6cd Abstract paint clipping into PaintClipper helper class that allows
stacking of clipping regions.
(http://lists.kde.org/?l=kwin&m=120138051215450&w=2)
BUG: 156798


svn path=/trunk/KDE/kdebase/workspace/; revision=779045
2008-02-25 11:32:21 +00:00
Adriaan de Groot
214d575aa3 Qt3 -> Qt4 style includes.
qdrawutil.h doesn't seem to have a purely Qt4-style equivalent, so including the directory there disambiguates it from the Qt3 header.

svn path=/trunk/KDE/kdebase/workspace/; revision=770116
2008-02-02 20:54:19 +00:00
Luboš Luňák
cef15afe8a Clean up properly.
BUG: 154270


svn path=/trunk/KDE/kdebase/workspace/; revision=762660
2008-01-17 16:24:11 +00:00
Stephan Binner
32272e9613 i18n style guide fixes
svn path=/trunk/KDE/kdebase/workspace/; revision=757261
2008-01-04 15:26:42 +00:00
Luboš Luňák
21a31819d1 Move the shortcuts to Ctrl+F9/F10, feels a bit better although I still don't
like the defaults for PresentWindows and DesktopGrid.


svn path=/trunk/KDE/kdebase/workspace/; revision=756780
2008-01-03 19:02:38 +00:00
Luboš Luňák
bb433ac40e No longer include config*.h files in installed headers.
Also slightly redo the #define's for effects, now it's:
- #ifdef KWIN_HAVE_COMPOSITING to check whether there's any compositing support at all
- #ifdef KWIN_HAVE_OPENGL_COMPOSITING to check for OpenGL-based compositing
- #ifdef KWIN_HAVE_XRENDER_COMPOSITING the same for XRender
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=749628
2007-12-17 14:14:53 +00:00
Rivo Laks
6827a0cc32 For some reason the icon caching doesn't work here so let's just disable it for now.
svn path=/trunk/KDE/kdebase/workspace/; revision=749165
2007-12-16 18:31:33 +00:00
Rivo Laks
7515cc8e0e Repaint filter box area when filter is empty.
svn path=/trunk/KDE/kdebase/workspace/; revision=749110
2007-12-16 14:43:28 +00:00
Adriaan de Groot
9ff9f6ce22 Disambiguating ints and unsigned and float and double
svn path=/trunk/KDE/kdebase/workspace/; revision=747016
2007-12-10 20:43:13 +00:00
Luboš Luňák
0b2a40e150 Act on KeyPress, not KeyRelease, the release may come
from the activating shortcut.


svn path=/trunk/KDE/kdebase/workspace/; revision=746327
2007-12-08 17:57:53 +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
Luboš Luňák
373f6e552a Useful keyboard navigation also for PresentWindows.
svn path=/trunk/KDE/kdebase/workspace/; revision=739606
2007-11-21 11:57:09 +00:00
Luboš Luňák
c1ed1edb52 Proper support for active xinerama screen in effects.
BUG: 152552 


svn path=/trunk/KDE/kdebase/workspace/; revision=739248
2007-11-20 18:58:30 +00:00
Luboš Luňák
bc6a084894 Let effects access window role as well.
svn path=/trunk/KDE/kdebase/workspace/; revision=736266
2007-11-13 19:59:53 +00:00