Commit graph

5887 commits

Author SHA1 Message Date
Lucas Murray
893b0c2c71 Merge DesktopLayout class into Workspace.
svn path=/trunk/KDE/kdebase/workspace/; revision=926020
2009-02-14 15:40:52 +00:00
Lucas Murray
dd28e15a1b Allow desktop effects to access the new DesktopLayout class. Replaced
all code that used calcDesktopLayout() so the function could be removed.
Minor changes to the DesktopLayout class itself.

svn path=/trunk/KDE/kdebase/workspace/; revision=925930
2009-02-14 14:49:46 +00:00
Lucas Murray
4681129e4b Move desktop layout code into a separate file and class. This will allow
adding more complex desktop layout features (Such as desktop
rearranging, and non-rectangular layouts) easier in the future.
Workspace::calcDesktopLayout() has been deprecated.

svn path=/trunk/KDE/kdebase/workspace/; revision=925812
2009-02-14 09:46:12 +00:00
Martin Gräßlin
4fa09b63b4 Sphere and Cylinder become part of Cube effect. That is much more convenient than having an own effect for each (only loading the shader is actually required).
Btw caps of cylinder and sphere are working correctly again.

svn path=/trunk/KDE/kdebase/workspace/; revision=925809
2009-02-14 09:29:01 +00:00
Script Kiddy
78e5461790 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=925513
2009-02-13 12:58:02 +00:00
Lucas Murray
b55115a8be Prevent recursion loop in Toplevel::screen() and
Workspace::activeScreen() when the center of the active client is
offscreen and was not previously on the active screen.

svn path=/trunk/KDE/kdebase/workspace/; revision=925362
2009-02-13 06:59:34 +00:00
Lucas Murray
7af22d3d99 Ensure that Workspace::activeScreen() always returns a valid screen.
svn path=/trunk/KDE/kdebase/workspace/; revision=925358
2009-02-13 06:35:54 +00:00
Lucas Murray
1802e56d9b If the center of a window is offscreen treat it as if it was on the
active screen instead of the primary one.

svn path=/trunk/KDE/kdebase/workspace/; revision=925357
2009-02-13 06:28:50 +00:00
Lucas Murray
beee5a8f85 If the cursor goes into the "dead" area of a Xinerama screen where the
two monitors have different resolutions treat it as if the cursor
didn't move at all when attempting to move a window. Prevents KWin from
crashing when in this situation.

svn path=/trunk/KDE/kdebase/workspace/; revision=925355
2009-02-13 06:15:59 +00:00
Luboš Luňák
11290257b2 Fix small leak.
svn path=/trunk/KDE/kdebase/workspace/; revision=925150
2009-02-12 15:25:47 +00:00
Script Kiddy
73b947b1ca SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=925107
2009-02-12 13:42:22 +00:00
Martin Gräßlin
3f07d10802 Blur windows which have hasAlpha set. That way background of e.g. transparent Plasma panels and Konsole will be blurred as well.
FEATURE: 178670

svn path=/trunk/KDE/kdebase/workspace/; revision=925075
2009-02-12 11:20:44 +00:00
Luboš Luňák
1297fe6daa Fix position of gravitated windows after a crash.
http://lists.kde.org/?l=kwin&m=123149700221501&w=2


svn path=/trunk/KDE/kdebase/workspace/; revision=925062
2009-02-12 10:01:40 +00:00
Luboš Luňák
1c2ba6ea17 I forgot to actually implement the resetCompositing() slot for the previous commit.
svn path=/trunk/KDE/kdebase/workspace/; revision=924759
2009-02-11 14:29:32 +00:00
Script Kiddy
c052cd2e57 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=924734

The following changes were in SVN, but were removed from git:

M	wallpapers/Air/metadata.desktop
M	wallpapers/HighTide/metadata.desktop
2009-02-11 14:05:30 +00:00
Laurent Montel
29b44299d5 forward port it
svn path=/trunk/KDE/kdebase/workspace/; revision=924691
2009-02-11 12:38:47 +00:00
Laurent Montel
ecaf281883 Backport it
svn path=/branches/KDE/4.2/kdebase/workspace/; revision=924688
2009-02-11 12:35:57 +00:00
Script Kiddy
7564ec2417 SVN_SILENT made messages (.desktop file)
svn path=/branches/KDE/4.2/kdebase/workspace/; revision=924600

The following changes were in SVN, but were removed from git:

M	wallpapers/Blue_Curl/metadata.desktop
M	wallpapers/Code_Poets_Dream/metadata.desktop
M	wallpapers/Curls_on_Green/metadata.desktop
M	wallpapers/EOS/metadata.desktop
M	wallpapers/Fields_of_Peace/metadata.desktop
M	wallpapers/Finally_Summer_in_Germany/metadata.desktop
M	wallpapers/Flower_drops/metadata.desktop
M	wallpapers/Fresh_Morning/metadata.desktop
M	wallpapers/Ladybuggin/metadata.desktop
M	wallpapers/Red_Leaf/metadata.desktop
M	wallpapers/There_is_Rain_on_the_Table/metadata.desktop
M	wallpapers/Vector_Sunset/metadata.desktop
2009-02-11 08:22:14 +00:00
Michael Jansen
366488f20c Commit 921749 changed the component name for kwin effects configuration kcms
from kwin to kcm_kwin4_effect_xyz . That broke global shortcuts configuration.

CCMAIL: kwin@kde.org
CCMAIL: lmurray@undefinedfire.com

svn path=/trunk/KDE/kdebase/workspace/; revision=924534
2009-02-11 00:34:09 +00:00
Script Kiddy
9894be083c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=924329
2009-02-10 14:33:53 +00:00
Lucas Murray
b3cbd4d914 Backport: Only activate windows in desktop grid if the user moves them
and prevent moving of minimized windows. Also fixes activating of
minimized windows in desktop grid by clicking where they were when they
were visible.
CCBUG: 179938

svn path=/branches/KDE/4.2/kdebase/workspace/; revision=924119
2009-02-10 07:04:16 +00:00
Lucas Murray
c493623f7a Only activate windows in desktop grid if the user moves them and prevent
moving of minimized windows. Also fixes activating of minimized windows
in desktop grid by clicking where they were when they were visible.
BUG: 179938

svn path=/trunk/KDE/kdebase/workspace/; revision=924118
2009-02-10 07:02:19 +00:00
Lucas Murray
5945dd1131 If an effect is triggered by an electric border "push" the cursor back
out of the triggering area and disallow a retrigger for 350ms. Prevents
accidental deactivation of effect when leaving the cursor in the
hotspot.

svn path=/trunk/KDE/kdebase/workspace/; revision=924111
2009-02-10 06:22:04 +00:00
Martin Gräßlin
5d54cf9445 Rework of dim screen for administration mode effect. Now it changes brightness and saturation of all windows instead of painting a semi-transparent area on the screen. And it works nicely with fullscreen effects. So the windows are not dimmed in e.g. coverswitch.
BUG: 183046

svn path=/trunk/KDE/kdebase/workspace/; revision=923844
2009-02-09 14:59:14 +00:00
Luboš Luňák
7249ca2cfb Do self-check immediatelly during compositing setup only when it's not KWin startup
at the same time (in other words, only when activating compositing using the kcm).
Currently selfcheck causes bad flicker (due to X mapping the overlay window
for too long?) which looks bad during KDE startup. With this patch, KDE startup
is without any flicker.


svn path=/trunk/KDE/kdebase/workspace/; revision=923842
2009-02-09 14:51:11 +00:00
Luboš Luňák
14a5fb8026 Try to have initting set during Workspace setup again, will be also needed
for the following commit.
If there will be any problems during KWin startup because of this please yell.


svn path=/trunk/KDE/kdebase/workspace/; revision=923838
2009-02-09 14:39:52 +00:00
Luboš Luňák
b50a8d352a Compress possible several reasons for resetting compositing.
svn path=/trunk/KDE/kdebase/workspace/; revision=923836
2009-02-09 14:37:07 +00:00
Lucas Murray
1bc2f456d9 Prevent dim inactive from crashing whenever the previous active window
is closed.

svn path=/trunk/KDE/kdebase/workspace/; revision=923835
2009-02-09 14:36:47 +00:00
Luboš Luňák
4d82d2291e Don't needlessly setup compositing twice during startup.
Xrandr seems to like to send events about "changes" right
after application startup.


svn path=/trunk/KDE/kdebase/workspace/; revision=923829
2009-02-09 14:31:42 +00:00
Script Kiddy
657288d7b6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=923793
2009-02-09 13:37:07 +00:00
Lucas Murray
56f36bec7f Deactivate window highlight immediately after the window is closed or if
the X window property is deleted.

svn path=/trunk/KDE/kdebase/workspace/; revision=923779
2009-02-09 12:37:59 +00:00
Oswald Buddenhagen
298586b6ee configure in the right config group ...
svn path=/trunk/KDE/kdebase/workspace/; revision=923375
2009-02-08 17:27:50 +00:00
Lucas Murray
b11d863033 Cleaned up the logout effect and fixed a whole pile of bugs that I
introduced when adding the blur animation.

svn path=/trunk/KDE/kdebase/workspace/; revision=923329
2009-02-08 16:04:02 +00:00
Martin Gräßlin
57f57adaa4 Export method hasAlpha() from Toplevel to EffectWindow.
svn path=/trunk/KDE/kdebase/workspace/; revision=923320
2009-02-08 15:47:37 +00:00
Script Kiddy
bcb561c839 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=923249
2009-02-08 14:11:41 +00:00
Lucas Murray
8f8c1d31ba Added blurring during the logout effect. As this is done entirely using
mipmaps the quality isn't the best. Might add a shader later that will
generate the final image so it uses mipmaps for realtime blurring while
using a high quality blur at the end.

svn path=/trunk/KDE/kdebase/workspace/; revision=923246
2009-02-08 14:07:00 +00:00
Lucas Murray
13c2f21e9d Added EffectWindow::acceptsFocus(). Prevent present windows from
displaying windows that cannot be focused anyway (Such as conky).

svn path=/trunk/KDE/kdebase/workspace/; revision=923091
2009-02-08 08:45:21 +00:00
Script Kiddy
b4151d2103 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=922806
2009-02-07 16:03:24 +00:00
Lucas Murray
fd233d1482 SVN_SILENT Started writing code that would display a thumbnail of a
window in the middle of the screen if it was offscreen when the
highlight window effect was activated. After getting half way through it
however I determined that it was a useless feature so instead of
deleting the code that was already written I am just commenting it out.
If anyone can find a purpose for this please let me know your ideas.

svn path=/trunk/KDE/kdebase/workspace/; revision=922795
2009-02-07 15:40:31 +00:00
Lucas Murray
c028835466 SVN_SILENT Make dim inactive effect animation obey the user's animation
speed settings.

svn path=/trunk/KDE/kdebase/workspace/; revision=922576
2009-02-07 09:53:17 +00:00
Lucas Murray
681cda92b5 Add slight animations to the dim inactive effect. Also don't dim windows
when a fullscreen effect is active, fixes dimmed windows during
coverswitch.
BUG: 165295

svn path=/trunk/KDE/kdebase/workspace/; revision=922574
2009-02-07 09:48:20 +00:00
Lucas Murray
188a47f0db Backport: Fixed cube from crashing due to mouse polling if it was
activated and deactivated too quickly.

svn path=/branches/KDE/4.2/kdebase/workspace/; revision=922459
2009-02-07 05:56:28 +00:00
Lucas Murray
1db192a11d Fixed cube from crashing due to mouse polling if it was activated and
deactivated too quickly.

svn path=/trunk/KDE/kdebase/workspace/; revision=922457
2009-02-07 05:52:25 +00:00
Frederik Schwarzer
a604e4a60d global typo fix
svn path=/trunk/KDE/kdebase/workspace/; revision=922431
2009-02-07 01:12:28 +00:00
Albert Astals Cid
5b89fb86ed Typo found by Yuri Chornoivan
svn path=/trunk/KDE/kdebase/workspace/; revision=922388
2009-02-06 21:23:57 +00:00
Martin Gräßlin
f7f5bc8326 Split cube mode and animation of desktop switching in separate effects: say hello to CubeSlide effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=922342
2009-02-06 18:53:16 +00:00
Script Kiddy
00a50d882f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdebase/workspace/; revision=922231
2009-02-06 15:34:47 +00:00
Lucas Murray
fef063cf46 Ensure to highlight the correct desktop back in if the desktop grid was
deactivated by pressing ESC or by using an electric border.

svn path=/trunk/KDE/kdebase/workspace/; revision=922144
2009-02-06 14:31:54 +00:00
Lucas Murray
81ffa5aec9 Raise electric border windows when an effect mouse input window is
created to allow effects to be toggled by active screen edges.

svn path=/trunk/KDE/kdebase/workspace/; revision=922121
2009-02-06 14:21:20 +00:00
Lucas Murray
a1c82cd52b Added support for inter-effect communication through the use of proxy
classes. Example code has been added to present windows and desktop
grid, if this code is not to be used by KDE 4.3 it should be removed and
added to a test effect instead.

svn path=/trunk/KDE/kdebase/workspace/; revision=922039
2009-02-06 10:15:06 +00:00