Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Workspace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Workspace
Commits
4fd08556
Commit
4fd08556
authored
Jan 30, 2011
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KWin uses kdelibs coding style.
parent
63d5c0c7
Changes
379
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
379 changed files
with
51493 additions
and
55757 deletions
+51493
-55757
kwin/activation.cpp
kwin/activation.cpp
+380
-427
kwin/atoms.cpp
kwin/atoms.cpp
+11
-11
kwin/atoms.h
kwin/atoms.h
+29
-29
kwin/bridge.cpp
kwin/bridge.cpp
+171
-177
kwin/bridge.h
kwin/bridge.h
+63
-63
kwin/client.cpp
kwin/client.cpp
+1075
-1153
kwin/client.h
kwin/client.h
+778
-757
kwin/clientgroup.cpp
kwin/clientgroup.cpp
+198
-212
kwin/clientgroup.h
kwin/clientgroup.h
+153
-152
kwin/composite.cpp
kwin/composite.cpp
+505
-552
kwin/compositingprefs.cpp
kwin/compositingprefs.cpp
+92
-103
kwin/compositingprefs.h
kwin/compositingprefs.h
+9
-3
kwin/deleted.cpp
kwin/deleted.cpp
+55
-57
kwin/deleted.h
kwin/deleted.h
+56
-46
kwin/desktopchangeosd.cpp
kwin/desktopchangeosd.cpp
+331
-385
kwin/desktopchangeosd.h
kwin/desktopchangeosd.h
+118
-101
kwin/desktoplayout.cpp
kwin/desktoplayout.cpp
+101
-108
kwin/effects.cpp
kwin/effects.cpp
+1018
-1099
kwin/effects.h
kwin/effects.h
+356
-363
kwin/effects/_test/demo_liquid.cpp
kwin/effects/_test/demo_liquid.cpp
+31
-36
kwin/effects/_test/demo_liquid.h
kwin/effects/_test/demo_liquid.h
+16
-16
kwin/effects/_test/demo_shakymove.cpp
kwin/effects/_test/demo_shakymove.cpp
+40
-44
kwin/effects/_test/demo_shakymove.h
kwin/effects/_test/demo_shakymove.h
+14
-14
kwin/effects/_test/demo_shiftworkspaceup.cpp
kwin/effects/_test/demo_shiftworkspaceup.cpp
+27
-27
kwin/effects/_test/demo_shiftworkspaceup.h
kwin/effects/_test/demo_shiftworkspaceup.h
+13
-13
kwin/effects/_test/demo_showpicture.cpp
kwin/effects/_test/demo_showpicture.cpp
+27
-29
kwin/effects/_test/demo_showpicture.h
kwin/effects/_test/demo_showpicture.h
+11
-11
kwin/effects/_test/demo_wavywindows.cpp
kwin/effects/_test/demo_wavywindows.cpp
+28
-30
kwin/effects/_test/demo_wavywindows.h
kwin/effects/_test/demo_wavywindows.h
+12
-12
kwin/effects/_test/drunken.cpp
kwin/effects/_test/drunken.cpp
+34
-36
kwin/effects/_test/drunken.h
kwin/effects/_test/drunken.h
+11
-11
kwin/effects/_test/flame.cpp
kwin/effects/_test/flame.cpp
+37
-43
kwin/effects/_test/flame.h
kwin/effects/_test/flame.h
+11
-11
kwin/effects/_test/gears.cpp
kwin/effects/_test/gears.cpp
+150
-161
kwin/effects/_test/gears.h
kwin/effects/_test/gears.h
+22
-22
kwin/effects/_test/howto.cpp
kwin/effects/_test/howto.cpp
+34
-44
kwin/effects/_test/howto.h
kwin/effects/_test/howto.h
+33
-33
kwin/effects/_test/kicker/kicker.cpp
kwin/effects/_test/kicker/kicker.cpp
+91
-109
kwin/effects/_test/kicker/kicker.h
kwin/effects/_test/kicker/kicker.h
+24
-24
kwin/effects/_test/slidetabs/slidetabs.cpp
kwin/effects/_test/slidetabs/slidetabs.cpp
+100
-109
kwin/effects/_test/slidetabs/slidetabs.h
kwin/effects/_test/slidetabs/slidetabs.h
+23
-23
kwin/effects/_test/slidetabs/slidetabs_config.cpp
kwin/effects/_test/slidetabs/slidetabs_config.cpp
+38
-38
kwin/effects/_test/slidetabs/slidetabs_config.h
kwin/effects/_test/slidetabs/slidetabs_config.h
+14
-14
kwin/effects/_test/swiveltabs/swiveltabs.cpp
kwin/effects/_test/swiveltabs/swiveltabs.cpp
+85
-96
kwin/effects/_test/swiveltabs/swiveltabs.h
kwin/effects/_test/swiveltabs/swiveltabs.h
+27
-28
kwin/effects/_test/swiveltabs/swiveltabs_config.cpp
kwin/effects/_test/swiveltabs/swiveltabs_config.cpp
+40
-40
kwin/effects/_test/swiveltabs/swiveltabs_config.h
kwin/effects/_test/swiveltabs/swiveltabs_config.h
+15
-15
kwin/effects/_test/test_fbo.cpp
kwin/effects/_test/test_fbo.cpp
+29
-31
kwin/effects/_test/test_fbo.h
kwin/effects/_test/test_fbo.h
+13
-13
kwin/effects/_test/test_input.cpp
kwin/effects/_test/test_input.cpp
+26
-28
kwin/effects/_test/test_input.h
kwin/effects/_test/test_input.h
+10
-10
kwin/effects/_test/test_thumbnail.cpp
kwin/effects/_test/test_thumbnail.cpp
+36
-38
kwin/effects/_test/test_thumbnail.h
kwin/effects/_test/test_thumbnail.h
+12
-12
kwin/effects/_test/videorecord.cpp
kwin/effects/_test/videorecord.cpp
+66
-71
kwin/effects/_test/videorecord.h
kwin/effects/_test/videorecord.h
+17
-17
kwin/effects/_test/videorecord_config.cpp
kwin/effects/_test/videorecord_config.cpp
+30
-30
kwin/effects/_test/videorecord_config.h
kwin/effects/_test/videorecord_config.h
+14
-14
kwin/effects/blur/blur.cpp
kwin/effects/blur/blur.cpp
+12
-13
kwin/effects/blur/blur.h
kwin/effects/blur/blur.h
+1
-1
kwin/effects/blur/blurshader.cpp
kwin/effects/blur/blurshader.cpp
+6
-7
kwin/effects/blur/blurshader.h
kwin/effects/blur/blurshader.h
+12
-4
kwin/effects/boxswitch/boxswitch.cpp
kwin/effects/boxswitch/boxswitch.cpp
+556
-713
kwin/effects/boxswitch/boxswitch.h
kwin/effects/boxswitch/boxswitch.h
+93
-94
kwin/effects/boxswitch/boxswitch_config.cpp
kwin/effects/boxswitch/boxswitch_config.cpp
+34
-34
kwin/effects/boxswitch/boxswitch_config.h
kwin/effects/boxswitch/boxswitch_config.h
+15
-15
kwin/effects/boxswitch/boxswitch_proxy.cpp
kwin/effects/boxswitch/boxswitch_proxy.cpp
+16
-16
kwin/effects/boxswitch/boxswitch_proxy.h
kwin/effects/boxswitch/boxswitch_proxy.h
+16
-16
kwin/effects/configs_builtins.cpp
kwin/effects/configs_builtins.cpp
+25
-25
kwin/effects/coverswitch/coverswitch.cpp
kwin/effects/coverswitch/coverswitch.cpp
+486
-622
kwin/effects/coverswitch/coverswitch.h
kwin/effects/coverswitch/coverswitch.h
+68
-69
kwin/effects/coverswitch/coverswitch_config.cpp
kwin/effects/coverswitch/coverswitch_config.cpp
+57
-57
kwin/effects/coverswitch/coverswitch_config.h
kwin/effects/coverswitch/coverswitch_config.h
+14
-14
kwin/effects/cube/cube.cpp
kwin/effects/cube/cube.cpp
+1063
-1304
kwin/effects/cube/cube.h
kwin/effects/cube/cube.h
+135
-138
kwin/effects/cube/cube_config.cpp
kwin/effects/cube/cube_config.cpp
+132
-153
kwin/effects/cube/cube_config.h
kwin/effects/cube/cube_config.h
+17
-17
kwin/effects/cube/cube_inside.h
kwin/effects/cube/cube_inside.h
+5
-5
kwin/effects/cube/cube_proxy.cpp
kwin/effects/cube/cube_proxy.cpp
+16
-16
kwin/effects/cube/cube_proxy.h
kwin/effects/cube/cube_proxy.h
+7
-7
kwin/effects/cube/cubeslide.cpp
kwin/effects/cube/cubeslide.cpp
+405
-505
kwin/effects/cube/cubeslide.h
kwin/effects/cube/cubeslide.h
+39
-40
kwin/effects/cube/cubeslide_config.cpp
kwin/effects/cube/cubeslide_config.cpp
+32
-32
kwin/effects/cube/cubeslide_config.h
kwin/effects/cube/cubeslide_config.h
+13
-13
kwin/effects/dashboard/dashboard.cpp
kwin/effects/dashboard/dashboard.cpp
+81
-102
kwin/effects/dashboard/dashboard.h
kwin/effects/dashboard/dashboard.h
+29
-29
kwin/effects/dashboard/dashboard_config.h
kwin/effects/dashboard/dashboard_config.h
+1
-1
kwin/effects/desktopgrid/desktopgrid.cpp
kwin/effects/desktopgrid/desktopgrid.cpp
+873
-1064
kwin/effects/desktopgrid/desktopgrid.h
kwin/effects/desktopgrid/desktopgrid.h
+111
-111
kwin/effects/desktopgrid/desktopgrid_config.cpp
kwin/effects/desktopgrid/desktopgrid_config.cpp
+91
-94
kwin/effects/desktopgrid/desktopgrid_config.h
kwin/effects/desktopgrid/desktopgrid_config.h
+20
-20
kwin/effects/dialogparent/dialogparent.cpp
kwin/effects/dialogparent/dialogparent.cpp
+40
-46
kwin/effects/dialogparent/dialogparent.h
kwin/effects/dialogparent/dialogparent.h
+19
-19
kwin/effects/diminactive/diminactive.cpp
kwin/effects/diminactive/diminactive.cpp
+63
-70
kwin/effects/diminactive/diminactive.h
kwin/effects/diminactive/diminactive.h
+20
-20
kwin/effects/diminactive/diminactive_config.cpp
kwin/effects/diminactive/diminactive_config.cpp
+11
-11
kwin/effects/diminactive/diminactive_config.h
kwin/effects/diminactive/diminactive_config.h
+11
-11
kwin/effects/dimscreen/dimscreen.cpp
kwin/effects/dimscreen/dimscreen.cpp
+48
-56
kwin/effects/dimscreen/dimscreen.h
kwin/effects/dimscreen/dimscreen.h
+18
-18
kwin/effects/explosion/explosion.cpp
kwin/effects/explosion/explosion.cpp
+58
-73
kwin/effects/explosion/explosion.h
kwin/effects/explosion/explosion.h
+28
-28
kwin/effects/fade/fade.cpp
kwin/effects/fade/fade.cpp
+113
-129
kwin/effects/fade/fade.h
kwin/effects/fade/fade.h
+35
-35
kwin/effects/fadedesktop/fadedesktop.cpp
kwin/effects/fadedesktop/fadedesktop.cpp
+48
-54
kwin/effects/fadedesktop/fadedesktop.h
kwin/effects/fadedesktop/fadedesktop.h
+15
-15
kwin/effects/fallapart/fallapart.cpp
kwin/effects/fallapart/fallapart.cpp
+78
-86
kwin/effects/fallapart/fallapart.h
kwin/effects/fallapart/fallapart.h
+15
-15
kwin/effects/flipswitch/flipswitch.cpp
kwin/effects/flipswitch/flipswitch.cpp
+534
-674
kwin/effects/flipswitch/flipswitch.h
kwin/effects/flipswitch/flipswitch.h
+77
-79
kwin/effects/flipswitch/flipswitch_config.cpp
kwin/effects/flipswitch/flipswitch_config.cpp
+41
-41
kwin/effects/flipswitch/flipswitch_config.h
kwin/effects/flipswitch/flipswitch_config.h
+16
-16
kwin/effects/glide/glide.cpp
kwin/effects/glide/glide.cpp
+129
-138
kwin/effects/glide/glide.h
kwin/effects/glide/glide.h
+41
-43
kwin/effects/glide/glide_config.cpp
kwin/effects/glide/glide_config.cpp
+16
-16
kwin/effects/highlightwindow/highlightwindow.cpp
kwin/effects/highlightwindow/highlightwindow.cpp
+106
-111
kwin/effects/highlightwindow/highlightwindow.h
kwin/effects/highlightwindow/highlightwindow.h
+41
-41
kwin/effects/invert/invert.cpp
kwin/effects/invert/invert.cpp
+52
-56
kwin/effects/invert/invert.h
kwin/effects/invert/invert.h
+27
-27
kwin/effects/invert/invert_config.cpp
kwin/effects/invert/invert_config.cpp
+18
-18
kwin/effects/invert/invert_config.h
kwin/effects/invert/invert_config.h
+13
-13
kwin/effects/login/login.cpp
kwin/effects/login/login.cpp
+41
-46
kwin/effects/login/login.h
kwin/effects/login/login.h
+13
-13
kwin/effects/logout/logout.cpp
kwin/effects/logout/logout.cpp
+184
-205
kwin/effects/logout/logout.h
kwin/effects/logout/logout.h
+33
-33
kwin/effects/lookingglass/lookingglass.cpp
kwin/effects/lookingglass/lookingglass.cpp
+65
-75
kwin/effects/lookingglass/lookingglass.h
kwin/effects/lookingglass/lookingglass.h
+35
-35
kwin/effects/lookingglass/lookingglass_config.cpp
kwin/effects/lookingglass/lookingglass_config.cpp
+19
-19
kwin/effects/lookingglass/lookingglass_config.h
kwin/effects/lookingglass/lookingglass_config.h
+15
-15
kwin/effects/magiclamp/magiclamp.cpp
kwin/effects/magiclamp/magiclamp.cpp
+166
-207
kwin/effects/magiclamp/magiclamp.h
kwin/effects/magiclamp/magiclamp.h
+28
-29
kwin/effects/magiclamp/magiclamp_config.cpp
kwin/effects/magiclamp/magiclamp_config.cpp
+17
-17
kwin/effects/magiclamp/magiclamp_config.h
kwin/effects/magiclamp/magiclamp_config.h
+13
-13
kwin/effects/magnifier/magnifier.cpp
kwin/effects/magnifier/magnifier.cpp
+69
-79
kwin/effects/magnifier/magnifier.h
kwin/effects/magnifier/magnifier.h
+21
-21
kwin/effects/magnifier/magnifier_config.cpp
kwin/effects/magnifier/magnifier_config.cpp
+17
-17
kwin/effects/magnifier/magnifier_config.h
kwin/effects/magnifier/magnifier_config.h
+15
-15
kwin/effects/minimizeanimation/minimizeanimation.cpp
kwin/effects/minimizeanimation/minimizeanimation.cpp
+46
-52
kwin/effects/minimizeanimation/minimizeanimation.h
kwin/effects/minimizeanimation/minimizeanimation.h
+17
-17
kwin/effects/mousemark/mousemark.cpp
kwin/effects/mousemark/mousemark.cpp
+75
-86
kwin/effects/mousemark/mousemark.h
kwin/effects/mousemark/mousemark.h
+21
-21
kwin/effects/mousemark/mousemark_config.cpp
kwin/effects/mousemark/mousemark_config.cpp
+20
-20
kwin/effects/mousemark/mousemark_config.h
kwin/effects/mousemark/mousemark_config.h
+15
-15
kwin/effects/presentwindows/presentwindows.cpp
kwin/effects/presentwindows/presentwindows.cpp
+1129
-1310
kwin/effects/presentwindows/presentwindows.h
kwin/effects/presentwindows/presentwindows.h
+219
-215
kwin/effects/presentwindows/presentwindows_config.cpp
kwin/effects/presentwindows/presentwindows_config.cpp
+112
-112
kwin/effects/presentwindows/presentwindows_config.h
kwin/effects/presentwindows/presentwindows_config.h
+16
-16
kwin/effects/presentwindows/presentwindows_proxy.cpp
kwin/effects/presentwindows/presentwindows_proxy.cpp
+9
-9
kwin/effects/presentwindows/presentwindows_proxy.h
kwin/effects/presentwindows/presentwindows_proxy.h
+8
-8
kwin/effects/resize/resize.cpp
kwin/effects/resize/resize.cpp
+63
-73
kwin/effects/resize/resize.h
kwin/effects/resize/resize.h
+21
-19
kwin/effects/resize/resize_config.cpp
kwin/effects/resize/resize_config.cpp
+26
-26
kwin/effects/resize/resize_config.h
kwin/effects/resize/resize_config.h
+12
-12
kwin/effects/scalein/scalein.cpp
kwin/effects/scalein/scalein.cpp
+42
-45
kwin/effects/scalein/scalein.h
kwin/effects/scalein/scalein.h
+13
-13
kwin/effects/screenshot/screenshot.cpp
kwin/effects/screenshot/screenshot.cpp
+58
-71
kwin/effects/screenshot/screenshot.h
kwin/effects/screenshot/screenshot.h
+23
-24
kwin/effects/sheet/sheet.cpp
kwin/effects/sheet/sheet.cpp
+89
-102
kwin/effects/sheet/sheet.h
kwin/effects/sheet/sheet.h
+34
-35
kwin/effects/showfps/showfps.cpp
kwin/effects/showfps/showfps.cpp
+195
-212
kwin/effects/showfps/showfps.h
kwin/effects/showfps/showfps.h
+35
-35
kwin/effects/showfps/showfps_config.cpp
kwin/effects/showfps/showfps_config.cpp
+16
-16
kwin/effects/showfps/showfps_config.h
kwin/effects/showfps/showfps_config.h
+13
-13
kwin/effects/showpaint/showpaint.cpp
kwin/effects/showpaint/showpaint.cpp
+35
-34
kwin/effects/showpaint/showpaint.h
kwin/effects/showpaint/showpaint.h
+12
-12
kwin/effects/slide/slide.cpp
kwin/effects/slide/slide.cpp
+127
-147
kwin/effects/slide/slide.h
kwin/effects/slide/slide.h
+20
-20
kwin/effects/slideback/slideback.cpp
kwin/effects/slideback/slideback.cpp
+204
-267
kwin/effects/slideback/slideback.h
kwin/effects/slideback/slideback.h
+46
-46
kwin/effects/slidingpopups/slidingpopups.cpp
kwin/effects/slidingpopups/slidingpopups.cpp
+110
-126
kwin/effects/slidingpopups/slidingpopups.h
kwin/effects/slidingpopups/slidingpopups.h
+33
-35
kwin/effects/snaphelper/snaphelper.cpp
kwin/effects/snaphelper/snaphelper.cpp
+54
-60
kwin/effects/snaphelper/snaphelper.h
kwin/effects/snaphelper/snaphelper.h
+20
-20
kwin/effects/startupfeedback/startupfeedback.cpp
kwin/effects/startupfeedback/startupfeedback.cpp
+184
-210
kwin/effects/startupfeedback/startupfeedback.h
kwin/effects/startupfeedback/startupfeedback.h
+39
-40
kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp
kwin/effects/taskbarthumbnail/taskbarthumbnail.cpp
+76
-81
kwin/effects/taskbarthumbnail/taskbarthumbnail.h
kwin/effects/taskbarthumbnail/taskbarthumbnail.h
+19
-20
kwin/effects/thumbnailaside/thumbnailaside.cpp
kwin/effects/thumbnailaside/thumbnailaside.cpp
+82
-91
kwin/effects/thumbnailaside/thumbnailaside.h
kwin/effects/thumbnailaside/thumbnailaside.h
+25
-26
kwin/effects/thumbnailaside/thumbnailaside_config.cpp
kwin/effects/thumbnailaside/thumbnailaside_config.cpp
+17
-17
kwin/effects/thumbnailaside/thumbnailaside_config.h
kwin/effects/thumbnailaside/thumbnailaside_config.h
+15
-15
kwin/effects/trackmouse/trackmouse.cpp
kwin/effects/trackmouse/trackmouse.cpp
+95
-107
kwin/effects/trackmouse/trackmouse.h
kwin/effects/trackmouse/trackmouse.h
+24
-24
kwin/effects/trackmouse/trackmouse_config.cpp
kwin/effects/trackmouse/trackmouse_config.cpp
+66
-69
kwin/effects/trackmouse/trackmouse_config.h
kwin/effects/trackmouse/trackmouse_config.h
+21
-21
kwin/effects/translucency/translucency.cpp
kwin/effects/translucency/translucency.cpp
+104
-129
kwin/effects/translucency/translucency.h
kwin/effects/translucency/translucency.h
+27
-27
kwin/effects/translucency/translucency_config.cpp
kwin/effects/translucency/translucency_config.cpp
+45
-45
kwin/effects/translucency/translucency_config.h
kwin/effects/translucency/translucency_config.h
+11
-11
kwin/effects/windowgeometry/windowgeometry.cpp
kwin/effects/windowgeometry/windowgeometry.cpp
+73
-80
kwin/effects/windowgeometry/windowgeometry.h
kwin/effects/windowgeometry/windowgeometry.h
+6
-4
kwin/effects/windowgeometry/windowgeometry_config.cpp
kwin/effects/windowgeometry/windowgeometry_config.cpp
+22
-22
kwin/effects/wobblywindows/wobblywindows.cpp
kwin/effects/wobblywindows/wobblywindows.cpp
+226
-365
kwin/effects/wobblywindows/wobblywindows.h
kwin/effects/wobblywindows/wobblywindows.h
+108
-111
kwin/effects/wobblywindows/wobblywindows_config.cpp
kwin/effects/wobblywindows/wobblywindows_config.cpp
+14
-22
kwin/effects/zoom/zoom.cpp
kwin/effects/zoom/zoom.cpp
+210
-240
kwin/effects/zoom/zoom.h
kwin/effects/zoom/zoom.h
+54
-54
kwin/effects/zoom/zoom_config.cpp
kwin/effects/zoom/zoom_config.cpp
+39
-39
kwin/effects/zoom/zoom_config.h
kwin/effects/zoom/zoom_config.h
+18
-18
kwin/events.cpp
kwin/events.cpp
+1070
-1218
kwin/geometry.cpp
kwin/geometry.cpp
+2001
-2260
kwin/geometrytip.cpp
kwin/geometrytip.cpp
+26
-29
kwin/geometrytip.h
kwin/geometrytip.h
+9
-9
kwin/group.cpp
kwin/group.cpp
+544
-627
kwin/group.h
kwin/group.h
+49
-49
kwin/kcmkwin/kwincompositing/ktimerdialog.cpp
kwin/kcmkwin/kwincompositing/ktimerdialog.cpp
+67
-67
kwin/kcmkwin/kwincompositing/ktimerdialog.h
kwin/kcmkwin/kwincompositing/ktimerdialog.h
+21
-22
kwin/kcmkwin/kwincompositing/main.cpp
kwin/kcmkwin/kwincompositing/main.cpp
+289
-324
kwin/kcmkwin/kwincompositing/main.h
kwin/kcmkwin/kwincompositing/main.h
+47
-47
kwin/kcmkwin/kwindecoration/buttons.cpp
kwin/kcmkwin/kwindecoration/buttons.cpp
+535
-535
kwin/kcmkwin/kwindecoration/buttons.h
kwin/kcmkwin/kwindecoration/buttons.h
+131
-131
kwin/kcmkwin/kwindecoration/buttonsconfigdialog.cpp
kwin/kcmkwin/kwindecoration/buttonsconfigdialog.cpp
+53
-53
kwin/kcmkwin/kwindecoration/buttonsconfigdialog.h
kwin/kcmkwin/kwindecoration/buttonsconfigdialog.h
+19
-19
kwin/kcmkwin/kwindecoration/configdialog.cpp
kwin/kcmkwin/kwindecoration/configdialog.cpp
+90
-98
kwin/kcmkwin/kwindecoration/configdialog.h
kwin/kcmkwin/kwindecoration/configdialog.h
+25
-25
kwin/kcmkwin/kwindecoration/decorationdelegate.cpp
kwin/kcmkwin/kwindecoration/decorationdelegate.cpp
+23
-25
kwin/kcmkwin/kwindecoration/decorationdelegate.h
kwin/kcmkwin/kwindecoration/decorationdelegate.h
+7
-7
kwin/kcmkwin/kwindecoration/decorationmodel.cpp
kwin/kcmkwin/kwindecoration/decorationmodel.cpp
+253
-274
kwin/kcmkwin/kwindecoration/decorationmodel.h
kwin/kcmkwin/kwindecoration/decorationmodel.h
+83
-84
kwin/kcmkwin/kwindecoration/kwindecoration.cpp
kwin/kcmkwin/kwindecoration/kwindecoration.cpp
+146
-165
kwin/kcmkwin/kwindecoration/kwindecoration.h
kwin/kcmkwin/kwindecoration/kwindecoration.h
+31
-31
kwin/kcmkwin/kwindecoration/pixmaps.h
kwin/kcmkwin/kwindecoration/pixmaps.h
+45
-34
kwin/kcmkwin/kwindecoration/preview.cpp
kwin/kcmkwin/kwindecoration/preview.cpp
+276
-294
kwin/kcmkwin/kwindecoration/preview.h
kwin/kcmkwin/kwindecoration/preview.h
+121
-121
kwin/kcmkwin/kwindesktop/desktopnameswidget.cpp
kwin/kcmkwin/kwindesktop/desktopnameswidget.cpp
+48
-55
kwin/kcmkwin/kwindesktop/desktopnameswidget.h
kwin/kcmkwin/kwindesktop/desktopnameswidget.h
+21
-21
kwin/kcmkwin/kwindesktop/main.cpp
kwin/kcmkwin/kwindesktop/main.cpp
+281
-316
kwin/kcmkwin/kwindesktop/main.h
kwin/kcmkwin/kwindesktop/main.h
+43
-43
kwin/kcmkwin/kwinoptions/main.cpp
kwin/kcmkwin/kwinoptions/main.cpp
+129
-129
kwin/kcmkwin/kwinoptions/main.h
kwin/kcmkwin/kwinoptions/main.h
+26
-26
kwin/kcmkwin/kwinoptions/mouse.cpp
kwin/kcmkwin/kwinoptions/mouse.cpp
+738
-731
kwin/kcmkwin/kwinoptions/mouse.h
kwin/kcmkwin/kwinoptions/mouse.h
+70
-64
kwin/kcmkwin/kwinoptions/windows.cpp
kwin/kcmkwin/kwinoptions/windows.cpp
+373
-349
kwin/kcmkwin/kwinoptions/windows.h
kwin/kcmkwin/kwinoptions/windows.h
+134
-128
kwin/kcmkwin/kwinrules/detectwidget.cpp
kwin/kcmkwin/kwinrules/detectwidget.cpp
+111
-117
kwin/kcmkwin/kwinrules/detectwidget.h
kwin/kcmkwin/kwinrules/detectwidget.h
+39
-39
kwin/kcmkwin/kwinrules/kcm.cpp
kwin/kcmkwin/kwinrules/kcm.cpp
+34
-34
kwin/kcmkwin/kwinrules/kcm.h
kwin/kcmkwin/kwinrules/kcm.h
+13
-13
kwin/kcmkwin/kwinrules/main.cpp
kwin/kcmkwin/kwinrules/main.cpp
+109
-137
kwin/kcmkwin/kwinrules/ruleslist.cpp
kwin/kcmkwin/kwinrules/ruleslist.cpp
+106
-110
kwin/kcmkwin/kwinrules/ruleslist.h
kwin/kcmkwin/kwinrules/ruleslist.h
+19
-19
kwin/kcmkwin/kwinrules/ruleswidget.cpp
kwin/kcmkwin/kwinrules/ruleswidget.cpp
+490
-505
kwin/kcmkwin/kwinrules/ruleswidget.h
kwin/kcmkwin/kwinrules/ruleswidget.h
+99
-99
kwin/kcmkwin/kwinscreenedges/main.cpp
kwin/kcmkwin/kwinscreenedges/main.cpp
+355
-381
kwin/kcmkwin/kwinscreenedges/main.h
kwin/kcmkwin/kwinscreenedges/main.h
+47
-48
kwin/kcmkwin/kwinscreenedges/monitor.cpp
kwin/kcmkwin/kwinscreenedges/monitor.cpp
+156
-168
kwin/kcmkwin/kwinscreenedges/monitor.h
kwin/kcmkwin/kwinscreenedges/monitor.h
+59
-60
kwin/kcmkwin/kwintabbox/layoutconfig.cpp
kwin/kcmkwin/kwintabbox/layoutconfig.cpp
+105
-132
kwin/kcmkwin/kwintabbox/layoutconfig.h
kwin/kcmkwin/kwintabbox/layoutconfig.h
+11
-11
kwin/kcmkwin/kwintabbox/main.cpp
kwin/kcmkwin/kwintabbox/main.cpp
+388
-404
kwin/kcmkwin/kwintabbox/main.h
kwin/kcmkwin/kwintabbox/main.h
+49
-48
kwin/kcmkwin/kwintabbox/previewhandlerimpl.cpp
kwin/kcmkwin/kwintabbox/previewhandlerimpl.cpp
+73
-75
kwin/kcmkwin/kwintabbox/previewhandlerimpl.h
kwin/kcmkwin/kwintabbox/previewhandlerimpl.h
+33
-33
kwin/killer/killer.cpp
kwin/killer/killer.cpp
+32
-36
kwin/killwindow.cpp
kwin/killwindow.cpp
+31
-38
kwin/killwindow.h
kwin/killwindow.h
+9
-9
kwin/kwinbindings.cpp
kwin/kwinbindings.cpp
+199
-199
kwin/lanczosfilter.cpp
kwin/lanczosfilter.cpp
+265
-306
kwin/lanczosfilter.h
kwin/lanczosfilter.h
+36
-36
kwin/layers.cpp
kwin/layers.cpp
+427
-483
kwin/lib/kcommondecoration.cpp
kwin/lib/kcommondecoration.cpp
+423
-431
kwin/lib/kcommondecoration.h
kwin/lib/kcommondecoration.h
+411
-413
kwin/lib/kcommondecoration_p.cpp
kwin/lib/kcommondecoration_p.cpp
+49
-49
kwin/lib/kcommondecoration_p.h
kwin/lib/kcommondecoration_p.h
+23
-23
kwin/lib/kdecoration.cpp
kwin/lib/kdecoration.cpp
+324
-323
kwin/lib/kdecoration.h
kwin/lib/kdecoration.h
+659
-668
kwin/lib/kdecoration_p.cpp
kwin/lib/kdecoration_p.cpp
+73
-80
kwin/lib/kdecoration_p.h
kwin/lib/kdecoration_p.h
+21
-21
kwin/lib/kdecoration_plugins_p.cpp
kwin/lib/kdecoration_plugins_p.cpp
+85
-96
kwin/lib/kdecoration_plugins_p.h
kwin/lib/kdecoration_plugins_p.h
+23
-23
kwin/lib/kdecorationbridge.h
kwin/lib/kdecorationbridge.h
+65
-65
kwin/lib/kdecorationfactory.cpp
kwin/lib/kdecorationfactory.cpp
+43
-43
kwin/lib/kdecorationfactory.h
kwin/lib/kdecorationfactory.h
+83
-83
kwin/lib/kwineffects.cpp
kwin/lib/kwineffects.cpp
+722
-765
kwin/lib/kwineffects.h
kwin/lib/kwineffects.h
+1442
-1424
kwin/lib/kwinglobals.cpp
kwin/lib/kwinglobals.cpp
+64
-72
kwin/lib/kwinglobals.h
kwin/lib/kwinglobals.h
+74
-65
kwin/lib/kwinglplatform.cpp
kwin/lib/kwinglplatform.cpp
+112
-116
kwin/lib/kwinglplatform.h
kwin/lib/kwinglplatform.h
+7
-7
kwin/lib/kwinglutils.cpp
kwin/lib/kwinglutils.cpp
+556
-629
kwin/lib/kwinglutils.h
kwin/lib/kwinglutils.h
+429
-407
kwin/lib/kwinglutils_funcs.cpp
kwin/lib/kwinglutils_funcs.cpp
+110
-127
kwin/lib/kwinglutils_funcs.h
kwin/lib/kwinglutils_funcs.h
+70
-70
kwin/lib/kwinxrenderutils.cpp
kwin/lib/kwinxrenderutils.cpp
+82
-88
kwin/lib/kwinxrenderutils.h
kwin/lib/kwinxrenderutils.h
+39
-39
kwin/main.cpp
kwin/main.cpp
+237
-257
kwin/main.h
kwin/main.h
+18
-18
kwin/manage.cpp
kwin/manage.cpp
+281
-322
kwin/notifications.cpp
kwin/notifications.cpp
+90
-94
kwin/notifications.h
kwin/notifications.h
+38
-40
kwin/nvidiahack.cpp
kwin/nvidiahack.cpp
+11
-11
kwin/options.cpp
kwin/options.cpp
+207
-217
kwin/options.h
kwin/options.h
+394
-357
kwin/paintredirector.cpp
kwin/paintredirector.cpp
+70
-79
kwin/paintredirector.h
kwin/paintredirector.h
+22
-22
kwin/placement.cpp
kwin/placement.cpp
+353
-395
kwin/placement.h
kwin/placement.h
+57
-59
kwin/plugins.cpp
kwin/plugins.cpp
+14
-14
kwin/plugins.h
kwin/plugins.h
+7
-7
kwin/rules.cpp
kwin/rules.cpp
+677
-716
kwin/rules.h
kwin/rules.h
+248
-253
kwin/scene.cpp
kwin/scene.cpp
+239
-260
kwin/scene.h
kwin/scene.h
+226
-222
kwin/scene_basic.cpp
kwin/scene_basic.cpp
+47
-49
kwin/scene_basic.h
kwin/scene_basic.h
+17
-15
kwin/scene_opengl.cpp
kwin/scene_opengl.cpp
+578
-645
kwin/scene_opengl.h
kwin/scene_opengl.h
+152
-151
kwin/scene_opengl_egl.cpp
kwin/scene_opengl_egl.cpp
+93
-103
kwin/scene_opengl_glx.cpp
kwin/scene_opengl_glx.cpp
+401
-466
kwin/scene_xrender.cpp
kwin/scene_xrender.cpp
+498
-567
kwin/scene_xrender.h
kwin/scene_xrender.h
+85
-83
kwin/scripting/chelate.cpp
kwin/scripting/chelate.cpp
+107
-148
kwin/scripting/chelate.h
kwin/scripting/chelate.h
+28
-28
kwin/scripting/client.cpp
kwin/scripting/client.cpp
+148
-244
kwin/scripting/client.h
kwin/scripting/client.h
+130
-130
kwin/scripting/kwsapigen.cpp
kwin/scripting/kwsapigen.cpp
+99
-99
kwin/scripting/meta.cpp
kwin/scripting/meta.cpp
+71
-105
kwin/scripting/meta.h
kwin/scripting/meta.h
+4
-4
kwin/scripting/plasma-backportglobal.h
kwin/scripting/plasma-backportglobal.h
+76
-78
kwin/scripting/s_clientgroup.cpp
kwin/scripting/s_clientgroup.cpp
+86
-150
kwin/scripting/s_clientgroup.h
kwin/scripting/s_clientgroup.h
+36
-36
kwin/scripting/scripting.cpp
kwin/scripting/scripting.cpp
+34
-45
kwin/scripting/scripting.h
kwin/scripting/scripting.h
+49
-51
kwin/scripting/timer.cpp
kwin/scripting/timer.cpp
+0
-0
kwin/scripting/toplevel.cpp
kwin/scripting/toplevel.cpp
+20
-33
kwin/scripting/toplevel.h
kwin/scripting/toplevel.h
+44
-44
kwin/scripting/windowinfo.cpp
kwin/scripting/windowinfo.cpp
+4
-4
kwin/scripting/windowinfo.h
kwin/scripting/windowinfo.h
+40
-40
kwin/scripting/workspace.cpp
kwin/scripting/workspace.cpp
+87
-139
kwin/scripting/workspace.h
kwin/scripting/workspace.h
+56
-56
kwin/scripting/workspaceproxy.cpp
kwin/scripting/workspaceproxy.cpp
+4
-4
kwin/scripting/workspaceproxy.h
kwin/scripting/workspaceproxy.h
+35
-35
kwin/sm.cpp
kwin/sm.cpp
+253
-285
kwin/sm.h
kwin/sm.h
+25
-25
kwin/tabbox.cpp
kwin/tabbox.cpp
+673
-754
kwin/tabbox.h
kwin/tabbox.h
+96
-90
kwin/tabbox/clientitemdelegate.cpp
kwin/tabbox/clientitemdelegate.cpp
+188
-214
kwin/tabbox/clientitemdelegate.h
kwin/tabbox/clientitemdelegate.h
+51
-49
kwin/tabbox/clientmodel.cpp
kwin/tabbox/clientmodel.cpp
+138
-158
kwin/tabbox/clientmodel.h
kwin/tabbox/clientmodel.h
+48
-47
kwin/tabbox/desktopitemdelegate.cpp
kwin/tabbox/desktopitemdelegate.cpp
+213
-235
kwin/tabbox/desktopitemdelegate.h
kwin/tabbox/desktopitemdelegate.h
+46
-46
kwin/tabbox/desktopmodel.cpp
kwin/tabbox/desktopmodel.cpp
+96
-104
kwin/tabbox/desktopmodel.h
kwin/tabbox/desktopmodel.h
+35
-34
kwin/tabbox/itemlayoutconfig.cpp
kwin/tabbox/itemlayoutconfig.cpp
+31
-31
kwin/tabbox/itemlayoutconfig.h
kwin/tabbox/itemlayoutconfig.h
+352
-281
kwin/tabbox/tabboxconfig.cpp
kwin/tabbox/tabboxconfig.cpp
+113
-115
kwin/tabbox/tabboxconfig.h
kwin/tabbox/tabboxconfig.h
+265
-247
kwin/tabbox/tabboxhandler.cpp
kwin/tabbox/tabboxhandler.cpp
+470
-512
kwin/tabbox/tabboxhandler.h
kwin/tabbox/tabboxhandler.h
+243
-243
kwin/tabbox/tabboxview.cpp
kwin/tabbox/tabboxview.cpp
+288
-312
kwin/tabbox/tabboxview.h
kwin/tabbox/tabboxview.h
+129
-111
kwin/tile.cpp
kwin/tile.cpp
+53
-57
kwin/tile.h
kwin/tile.h
+54
-54
kwin/tiling.cpp
kwin/tiling.cpp
+244
-279
kwin/tilinglayout.cpp
kwin/tilinglayout.cpp
+129
-138
kwin/tilinglayout.h
kwin/tilinglayout.h
+93
-93
kwin/tilinglayoutfactory.cpp
kwin/tilinglayoutfactory.cpp
+45
-51
kwin/tilinglayoutfactory.h
kwin/tilinglayoutfactory.h
+32
-32
kwin/tilinglayouts/columns/columns.cpp
kwin/tilinglayouts/columns/columns.cpp
+64
-74
kwin/tilinglayouts/columns/columns.h
kwin/tilinglayouts/columns/columns.h
+10
-10
kwin/tilinglayouts/floating/floating.cpp
kwin/tilinglayouts/floating/floating.cpp
+23
-24
kwin/tilinglayouts/floating/floating.h
kwin/tilinglayouts/floating/floating.h
+23
-23
kwin/tilinglayouts/spiral/spiral.cpp
kwin/tilinglayouts/spiral/spiral.cpp
+30
-33
kwin/tilinglayouts/spiral/spiral.h
kwin/tilinglayouts/spiral/spiral.h
+12
-12
kwin/tools/decobenchmark/main.cpp
kwin/tools/decobenchmark/main.cpp
+74
-74
kwin/tools/decobenchmark/main.h
kwin/tools/decobenchmark/main.h
+13
-13
kwin/tools/decobenchmark/preview.cpp
kwin/tools/decobenchmark/preview.cpp
+133
-137
kwin/tools/decobenchmark/preview.h
kwin/tools/decobenchmark/preview.h
+86
-86
kwin/tools/show_icons.cpp
kwin/tools/show_icons.cpp
+27
-28
kwin/tools/test_gravity.cpp
kwin/tools/test_gravity.cpp
+48
-60
kwin/tools/xreply/xreply.c
kwin/tools/xreply/xreply.c
+92
-109
kwin/toplevel.cpp
kwin/toplevel.cpp
+143
-153
kwin/toplevel.h
kwin/toplevel.h
+251
-251
kwin/unmanaged.cpp
kwin/unmanaged.cpp
+54
-58
kwin/unmanaged.h
kwin/unmanaged.h
+21
-21
kwin/useractions.cpp
kwin/useractions.cpp
+1097
-1186
kwin/utils.cpp
kwin/utils.cpp
+214
-232
kwin/utils.h
kwin/utils.h
+153
-160
kwin/workspace.cpp
kwin/workspace.cpp
+1562
-1732
kwin/workspace.h
kwin/workspace.h
+1303
-1180
No files found.
kwin/activation.cpp
View file @
4fd08556
This diff is collapsed.
Click to expand it.
kwin/atoms.cpp
View file @
4fd08556
...
...
@@ -27,7 +27,7 @@ namespace KWin
{
Atoms
::
Atoms
()
{
{
const
int
max
=
50
;
Atom
*
atoms
[
max
];
...
...
@@ -114,11 +114,11 @@ Atoms::Atoms()
atoms
[
n
]
=
&
net_wm_sync_request
;
names
[
n
++
]
=
(
char
*
)
"_NET_WM_SYNC_REQUEST"
;
assert
(
n
<=
max
);
assert
(
n
<=
max
);
XInternAtoms
(
display
(),
names
,
n
,
false
,
atoms_return
);
for
(
int
i
=
0
;
i
<
n
;
i
++
)
XInternAtoms
(
display
(),
names
,
n
,
false
,
atoms_return
);
for
(
int
i
=
0
;
i
<
n
;
i
++
)
*
atoms
[
i
]
=
atoms_return
[
i
];
}
}
}
// namespace
kwin/atoms.h
View file @
4fd08556
...
...
@@ -29,8 +29,8 @@ namespace KWin
{
class
Atoms
{
public:
{
public:
Atoms
();
Atom
kwin_running
;
...
...
@@ -60,7 +60,7 @@ class Atoms
Atom
kde_net_wm_frame_strut
;
Atom
net_wm_sync_request_counter
;
Atom
net_wm_sync_request
;
};
};
extern
Atoms
*
atoms
;
...
...
kwin/bridge.cpp
View file @
4fd08556
...
...
@@ -29,153 +29,149 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace
KWin
{
Bridge
::
Bridge
(
Client
*
cl
)
:
c
(
cl
)
{
}
Bridge
::
Bridge
(
Client
*
cl
)
:
c
(
cl
)
{
}
#define BRIDGE_HELPER( rettype, prototype, args1, args2, cst ) \
rettype Bridge::prototype ( args1 ) cst \
rettype Bridge::prototype ( args1 ) cst \
{ \
return c->prototype( args2 ); \
}
BRIDGE_HELPER
(
bool
,
isActive
,,,
const
)
BRIDGE_HELPER
(
bool
,
isCloseable
,,,
const
)
BRIDGE_HELPER
(
bool
,
isMaximizable
,,,
const
)
BRIDGE_HELPER
(
Bridge
::
MaximizeMode
,
maximizeMode
,,,
const
)
BRIDGE_HELPER
(
bool
,
isMinimizable
,,,
const
)
BRIDGE_HELPER
(
bool
,
providesContextHelp
,,,
const
)
BRIDGE_HELPER
(
int
,
desktop
,,,
const
)
BRIDGE_HELPER
(
bool
,
isModal
,,,
const
)
BRIDGE_HELPER
(
bool
,
isShadeable
,,,
const
)
BRIDGE_HELPER
(
bool
,
isShade
,,,
const
)
BRIDGE_HELPER
(
bool
,
keepAbove
,,,
const
)
BRIDGE_HELPER
(
bool
,
keepBelow
,,,
const
)
BRIDGE_HELPER
(
bool
,
isMovable
,,,
const
)
BRIDGE_HELPER
(
bool
,
isResizable
,,,
const
)
BRIDGE_HELPER
(
QString
,
caption
,,,
const
)
BRIDGE_HELPER
(
void
,
processMousePressEvent
,
QMouseEvent
*
e
,
e
,
)
BRIDGE_HELPER
(
QRect
,
geometry
,,,
const
)
BRIDGE_HELPER
(
void
,
closeWindow
,,,
)
BRIDGE_HELPER
(
void
,
maximize
,
MaximizeMode
m
,
m
,
)
BRIDGE_HELPER
(
void
,
minimize
,,,
)
BRIDGE_HELPER
(
void
,
showContextHelp
,,,
)
BRIDGE_HELPER
(
void
,
setDesktop
,
int
desktop
,
desktop
,
)
void
Bridge
::
setKeepAbove
(
bool
set
)
{
if
(
c
->
keepAbove
()
!=
set
)
c
->
workspace
()
->
performWindowOperation
(
c
,
KeepAboveOp
);
}
BRIDGE_HELPER
(
bool
,
isActive
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isCloseable
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isMaximizable
,
,
,
const
)
BRIDGE_HELPER
(
Bridge
::
MaximizeMode
,
maximizeMode
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isMinimizable
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
providesContextHelp
,
,
,
const
)
BRIDGE_HELPER
(
int
,
desktop
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isModal
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isShadeable
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isShade
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
keepAbove
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
keepBelow
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isMovable
,
,
,
const
)
BRIDGE_HELPER
(
bool
,
isResizable
,
,
,
const
)
BRIDGE_HELPER
(
QString
,
caption
,
,
,
const
)
BRIDGE_HELPER
(
void
,
processMousePressEvent
,
QMouseEvent
*
e
,
e
,
)
BRIDGE_HELPER
(
QRect
,
geometry
,
,
,
const
)
BRIDGE_HELPER
(
void
,
closeWindow
,
,
,
)
BRIDGE_HELPER
(
void
,
maximize
,
MaximizeMode
m
,
m
,
)
BRIDGE_HELPER
(
void
,
minimize
,
,
,
)
BRIDGE_HELPER
(
void
,
showContextHelp
,
,
,
)
BRIDGE_HELPER
(
void
,
setDesktop
,
int
desktop
,
desktop
,
)
void
Bridge
::
setKeepAbove
(
bool
set
)
{
if
(
c
->
keepAbove
()
!=
set
)
c
->
workspace
()
->
performWindowOperation
(
c
,
KeepAboveOp
);
}
void
Bridge
::
setKeepBelow
(
bool
set
)
{
if
(
c
->
keepBelow
()
!=
set
)
c
->
workspace
()
->
performWindowOperation
(
c
,
KeepBelowOp
);
}
void
Bridge
::
setKeepBelow
(
bool
set
)
{
if
(
c
->
keepBelow
()
!=
set
)
c
->
workspace
()
->
performWindowOperation
(
c
,
KeepBelowOp
);
}
NET
::
WindowType
Bridge
::
windowType
(
unsigned
long
supported_types
)
const
{
return
c
->
windowType
(
false
,
supported_types
);
}
NET
::
WindowType
Bridge
::
windowType
(
unsigned
long
supported_types
)
const
{
return
c
->
windowType
(
false
,
supported_types
);
}
QIcon
Bridge
::
icon
()
const
{
QIcon
ret
(
c
->
icon
());
ret
.
addPixmap
(
c
->
miniIcon
());
{
QIcon
ret
(
c
->
icon
());
ret
.
addPixmap
(
c
->
miniIcon
());
return
ret
;
}
}
bool
Bridge
::
isSetShade
()
const
{
{
return
c
->
shadeMode
()
!=
ShadeNone
;
}
}
void
Bridge
::
showWindowMenu
(
const
QPoint
&
p
)
{
c
->
workspace
()
->
showWindowMenu
(
p
,
c
);
}
void
Bridge
::
showWindowMenu
(
const
QPoint
&
p
)
{
c
->
workspace
()
->
showWindowMenu
(
p
,
c
);
}
void
Bridge
::
showWindowMenu
(
const
QRect
&
p
)
{
c
->
workspace
()
->
showWindowMenu
(
p
,
c
);
}
void
Bridge
::
showWindowMenu
(
const
QRect
&
p
)
{
c
->
workspace
()
->
showWindowMenu
(
p
,
c
);
}
void
Bridge
::
performWindowOperation
(
WindowOperation
op
)
{
c
->
workspace
()
->
performWindowOperation
(
c
,
op
);
}
void
Bridge
::
performWindowOperation
(
WindowOperation
op
)
{
c
->
workspace
()
->
performWindowOperation
(
c
,
op
);
}
void
Bridge
::
setMask
(
const
QRegion
&
r
,
int
mode
)
{
c
->
setMask
(
r
,
mode
);
}
void
Bridge
::
setMask
(
const
QRegion
&
r
,
int
mode
)
{
c
->
setMask
(
r
,
mode
);
}
bool
Bridge
::
isPreview
()
const
{
{
return
false
;
}
}
QRect
Bridge
::
iconGeometry
()
const
{
{
NETRect
r
=
c
->
info
->
iconGeometry
();
return
QRect
(
r
.
pos
.
x
,
r
.
pos
.
y
,
r
.
size
.
width
,
r
.
size
.
height
);
}
return
QRect
(
r
.
pos
.
x
,
r
.
pos
.
y
,
r
.
size
.
width
,
r
.
size
.
height
);
}
WId
Bridge
::
windowId
()
const
{
{
return
c
->
window
();
}
}
void
Bridge
::
titlebarDblClickOperation
()
{
c
->
workspace
()
->
performWindowOperation
(
c
,
options
->
operationTitlebarDblClick
());
}
{
c
->
workspace
()
->
performWindowOperation
(
c
,
options
->
operationTitlebarDblClick
());
}
void
Bridge
::
titlebarMouseWheelOperation
(
int
delta
)
{
c
->
performMouseCommand
(
options
->
operationTitlebarMouseWheel
(
delta
),
cursorPos
());
}
void
Bridge
::
titlebarMouseWheelOperation
(
int
delta
)
{
c
->
performMouseCommand
(
options
->
operationTitlebarMouseWheel
(
delta
),
cursorPos
());
}
void
Bridge
::
setShade
(
bool
set
)
{
c
->
setShade
(
set
?
ShadeNormal
:
ShadeNone
);
}
void
Bridge
::
setShade
(
bool
set
)
{
c
->
setShade
(
set
?
ShadeNormal
:
ShadeNone
);
}
int
Bridge
::
currentDesktop
()
const
{
{
return
c
->
workspace
()
->
currentDesktop
();
}
}
QWidget
*
Bridge
::
initialParentWidget
()
const
{
{
return
NULL
;
}
}
Qt
::
WFlags
Bridge
::
initialWFlags
()
const
{
{
return
0
;
}
}
QRegion
Bridge
::
unobscuredRegion
(
const
QRegion
&
r
)
const
{
QRegion
reg
(
r
);
QRegion
Bridge
::
unobscuredRegion
(
const
QRegion
&
r
)
const
{
QRegion
reg
(
r
);
const
ClientList
stacking_order
=
c
->
workspace
()
->
stackingOrder
();
int
pos
=
stacking_order
.
indexOf
(
c
);
int
pos
=
stacking_order
.
indexOf
(
c
);
++
pos
;
for
(;
pos
<
stacking_order
.
count
();
++
pos
)
{
if
(
!
stacking_order
[
pos
]
->
isShown
(
true
))
for
(;
pos
<
stacking_order
.
count
();
++
pos
)
{
if
(
!
stacking_order
[
pos
]
->
isShown
(
true
))
continue
;
// these don't obscure the window
if
(
c
->
isOnAllDesktops
())
{
if
(
!
stacking_order
[
pos
]
->
isOnCurrentDesktop
())
if
(
c
->
isOnAllDesktops
())
{
if
(
!
stacking_order
[
pos
]
->
isOnCurrentDesktop
())
continue
;
}
else
{
if
(
!
stacking_order
[
pos
]
->
isOnDesktop
(
c
->
desktop
()))
}
else
{
if
(
!
stacking_order
[
pos
]
->
isOnDesktop
(
c
->
desktop
()))
continue
;
}
/* the clients all have their mask-regions in local coords
...
...
@@ -186,121 +182,119 @@ QRegion Bridge::unobscuredRegion( const QRegion& r ) const
QRegion
creg
=
stacking_order
[
pos
]
->
mask
();
creg
.
translate
(
dx
,
dy
);
reg
-=
creg
;
if
(
reg
.
isEmpty
())
{
if
(
reg
.
isEmpty
())
{
// early out, we are completely obscured
break
;
}
}
return
reg
;
}
}
void
Bridge
::
grabXServer
(
bool
grab
)
{
if
(
grab
)
void
Bridge
::
grabXServer
(
bool
grab
)
{
if
(
grab
)
KWin
::
grabXServer
();
else
KWin
::
ungrabXServer
();
}
}
bool
Bridge
::
compositingActive
()
const
{
{
return
c
->
workspace
()
->
compositingActive
();
}
}
QRect
Bridge
::
transparentRect
()
const
{
{
return
c
->
transparentRect
().
translated
(
-
c
->
decorationRect
().
topLeft
());
}
}
bool
Bridge
::
isClientGroupActive
()
{
if
(
c
->
clientGroup
()
)
{
if
(
c
->
clientGroup
()
)
return
c
->
clientGroup
()
->
containsActiveClient
();
return
isActive
();
}
}
QList
<
ClientGroupItem
>
Bridge
::
clientGroupItems
()
const
{
if
(
c
->
clientGroup
()
)
{
if
(
c
->
clientGroup
()
)
return
c
->
clientGroup
()
->
items
();
QList
<
ClientGroupItem
>
items
;
QIcon
icon
(
c
->
icon
()
);
icon
.
addPixmap
(
c
->
miniIcon
()
);
items
.
append
(
ClientGroupItem
(
c
->
caption
(),
icon
));
QIcon
icon
(
c
->
icon
()
);
icon
.
addPixmap
(
c
->
miniIcon
()
);
items
.
append
(
ClientGroupItem
(
c
->
caption
(),
icon
));
return
items
;
}
}
long
Bridge
::
itemId
(
int
index
)
{
if
(
!
c
->
clientGroup
()
)
long
Bridge
::
itemId
(
int
index
)
{
if
(
!
c
->
clientGroup
()
)
return
0
;
const
ClientList
list
=
c
->
clientGroup
()
->
clients
();
return
reinterpret_cast
<
long
>
(
list
.
at
(
index
));
}
return
reinterpret_cast
<
long
>
(
list
.
at
(
index
));
}
int
Bridge
::
visibleClientGroupItem
()
{
if
(
c
->
clientGroup
()
)
{
if
(
c
->
clientGroup
()
)
return
c
->
clientGroup
()
->
indexOfVisibleClient
();
return
0
;
}
}
void
Bridge
::
setVisibleClientGroupItem
(
int
index
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
setVisible
(
index
);
}
void
Bridge
::
setVisibleClientGroupItem
(
int
index
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
setVisible
(
index
);
}
void
Bridge
::
moveItemInClientGroup
(
int
index
,
int
before
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
move
(
index
,
before
);
}
void
Bridge
::
moveItemInClientGroup
(
int
index
,
int
before
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
move
(
index
,
before
);
}
void
Bridge
::
moveItemToClientGroup
(
long
itemId
,
int
before
)
{
Client
*
item
=
reinterpret_cast
<
Client
*>
(
itemId
);
if
(
!
c
->
workspace
()
->
hasClient
(
item
))
{
void
Bridge
::
moveItemToClientGroup
(
long
itemId
,
int
before
)
{
Client
*
item
=
reinterpret_cast
<
Client
*>
(
itemId
);
if
(
!
c
->
workspace
()
->
hasClient
(
item
))
{
kWarning
(
1212
)
<<
"****** ARBITRARY CODE EXECUTION ATTEMPT DETECTED ******"
;
return
;
}
if
(
item
->
clientGroup
()
)
c
->
workspace
()
->
moveItemToClientGroup
(
item
->
clientGroup
(),
item
->
clientGroup
()
->
indexOfClient
(
item
),
c
->
clientGroup
(),
before
);
}
if
(
item
->
clientGroup
()
)
c
->
workspace
()
->
moveItemToClientGroup
(
item
->
clientGroup
(),
item
->
clientGroup
()
->
indexOfClient
(
item
),
c
->
clientGroup
(),
before
);
}
void
Bridge
::
removeFromClientGroup
(
int
index
,
const
QRect
&
newGeom
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
remove
(
index
,
newGeom
);
}
void
Bridge
::
removeFromClientGroup
(
int
index
,
const
QRect
&
newGeom
)
{
if
(
c
->
clientGroup
()
)
c
->
clientGroup
()
->
remove
(
index
,
newGeom
);
}
void
Bridge
::
closeClientGroupItem
(
int
index
)
{
if
(
!
c
->
clientGroup
()
)
void
Bridge
::
closeClientGroupItem
(
int
index
)
{
if
(
!
c
->
clientGroup
()
)
return
;
const
ClientList
list
=
c
->
clientGroup
()
->
clients
();
if
(
index
>=
0
||
index
<=
list
.
count
()
)
list
.
at
(
index
)
->
closeWindow
();
}
if
(
index
>=
0
||
index
<=
list
.
count
()
)
list
.
at
(
index
)
->
closeWindow
();
}
void
Bridge
::
closeAllInClientGroup
()
{