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
KWin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
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
Plasma
KWin
Commits
0a7e48f7
Commit
0a7e48f7
authored
Jan 30, 2011
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KWin uses kdelibs coding style.
parent
1a5b3b4b
Changes
379
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
379 changed files
with
51493 additions
and
55757 deletions
+51493
-55757
activation.cpp
activation.cpp
+380
-427
atoms.cpp
atoms.cpp
+11
-11
atoms.h
atoms.h
+29
-29
bridge.cpp
bridge.cpp
+171
-177
bridge.h
bridge.h
+63
-63
client.cpp
client.cpp
+1075
-1153
client.h
client.h
+778
-757
clientgroup.cpp
clientgroup.cpp
+198
-212
clientgroup.h
clientgroup.h
+153
-152
composite.cpp
composite.cpp
+505
-552
compositingprefs.cpp
compositingprefs.cpp
+92
-103
compositingprefs.h
compositingprefs.h
+9
-3
deleted.cpp
deleted.cpp
+55
-57
deleted.h
deleted.h
+56
-46
desktopchangeosd.cpp
desktopchangeosd.cpp
+331
-385
desktopchangeosd.h
desktopchangeosd.h
+118
-101
desktoplayout.cpp
desktoplayout.cpp
+101
-108
effects.cpp
effects.cpp
+1018
-1099
effects.h
effects.h
+356
-363
effects/_test/demo_liquid.cpp
effects/_test/demo_liquid.cpp
+31
-36
effects/_test/demo_liquid.h
effects/_test/demo_liquid.h
+16
-16
effects/_test/demo_shakymove.cpp
effects/_test/demo_shakymove.cpp
+40
-44
effects/_test/demo_shakymove.h
effects/_test/demo_shakymove.h
+14
-14
effects/_test/demo_shiftworkspaceup.cpp
effects/_test/demo_shiftworkspaceup.cpp
+27
-27
effects/_test/demo_shiftworkspaceup.h
effects/_test/demo_shiftworkspaceup.h
+13
-13
effects/_test/demo_showpicture.cpp
effects/_test/demo_showpicture.cpp
+27
-29
effects/_test/demo_showpicture.h
effects/_test/demo_showpicture.h
+11
-11
effects/_test/demo_wavywindows.cpp
effects/_test/demo_wavywindows.cpp
+28
-30
effects/_test/demo_wavywindows.h
effects/_test/demo_wavywindows.h
+12
-12
effects/_test/drunken.cpp
effects/_test/drunken.cpp
+34
-36
effects/_test/drunken.h
effects/_test/drunken.h
+11
-11
effects/_test/flame.cpp
effects/_test/flame.cpp
+37
-43
effects/_test/flame.h
effects/_test/flame.h
+11
-11
effects/_test/gears.cpp
effects/_test/gears.cpp
+150
-161
effects/_test/gears.h
effects/_test/gears.h
+22
-22
effects/_test/howto.cpp
effects/_test/howto.cpp
+34
-44
effects/_test/howto.h
effects/_test/howto.h
+33
-33
effects/_test/kicker/kicker.cpp
effects/_test/kicker/kicker.cpp
+91
-109
effects/_test/kicker/kicker.h
effects/_test/kicker/kicker.h
+24
-24
effects/_test/slidetabs/slidetabs.cpp
effects/_test/slidetabs/slidetabs.cpp
+100
-109
effects/_test/slidetabs/slidetabs.h
effects/_test/slidetabs/slidetabs.h
+23
-23
effects/_test/slidetabs/slidetabs_config.cpp
effects/_test/slidetabs/slidetabs_config.cpp
+38
-38
effects/_test/slidetabs/slidetabs_config.h
effects/_test/slidetabs/slidetabs_config.h
+14
-14
effects/_test/swiveltabs/swiveltabs.cpp
effects/_test/swiveltabs/swiveltabs.cpp
+85
-96
effects/_test/swiveltabs/swiveltabs.h
effects/_test/swiveltabs/swiveltabs.h
+27
-28
effects/_test/swiveltabs/swiveltabs_config.cpp
effects/_test/swiveltabs/swiveltabs_config.cpp
+40
-40
effects/_test/swiveltabs/swiveltabs_config.h
effects/_test/swiveltabs/swiveltabs_config.h
+15
-15
effects/_test/test_fbo.cpp
effects/_test/test_fbo.cpp
+29
-31
effects/_test/test_fbo.h
effects/_test/test_fbo.h
+13
-13
effects/_test/test_input.cpp
effects/_test/test_input.cpp
+26
-28
effects/_test/test_input.h
effects/_test/test_input.h
+10
-10
effects/_test/test_thumbnail.cpp
effects/_test/test_thumbnail.cpp
+36
-38
effects/_test/test_thumbnail.h
effects/_test/test_thumbnail.h
+12
-12
effects/_test/videorecord.cpp
effects/_test/videorecord.cpp
+66
-71
effects/_test/videorecord.h
effects/_test/videorecord.h
+17
-17
effects/_test/videorecord_config.cpp
effects/_test/videorecord_config.cpp
+30
-30
effects/_test/videorecord_config.h
effects/_test/videorecord_config.h
+14
-14
effects/blur/blur.cpp
effects/blur/blur.cpp
+12
-13
effects/blur/blur.h
effects/blur/blur.h
+1
-1
effects/blur/blurshader.cpp
effects/blur/blurshader.cpp
+6
-7
effects/blur/blurshader.h
effects/blur/blurshader.h
+12
-4
effects/boxswitch/boxswitch.cpp
effects/boxswitch/boxswitch.cpp
+556
-713
effects/boxswitch/boxswitch.h
effects/boxswitch/boxswitch.h
+93
-94
effects/boxswitch/boxswitch_config.cpp
effects/boxswitch/boxswitch_config.cpp
+34
-34
effects/boxswitch/boxswitch_config.h
effects/boxswitch/boxswitch_config.h
+15
-15
effects/boxswitch/boxswitch_proxy.cpp
effects/boxswitch/boxswitch_proxy.cpp
+16
-16
effects/boxswitch/boxswitch_proxy.h
effects/boxswitch/boxswitch_proxy.h
+16
-16
effects/configs_builtins.cpp
effects/configs_builtins.cpp
+25
-25
effects/coverswitch/coverswitch.cpp
effects/coverswitch/coverswitch.cpp
+486
-622
effects/coverswitch/coverswitch.h
effects/coverswitch/coverswitch.h
+68
-69
effects/coverswitch/coverswitch_config.cpp
effects/coverswitch/coverswitch_config.cpp
+57
-57
effects/coverswitch/coverswitch_config.h
effects/coverswitch/coverswitch_config.h
+14
-14
effects/cube/cube.cpp
effects/cube/cube.cpp
+1063
-1304
effects/cube/cube.h
effects/cube/cube.h
+135
-138
effects/cube/cube_config.cpp
effects/cube/cube_config.cpp
+132
-153
effects/cube/cube_config.h
effects/cube/cube_config.h
+17
-17
effects/cube/cube_inside.h
effects/cube/cube_inside.h
+5
-5
effects/cube/cube_proxy.cpp
effects/cube/cube_proxy.cpp
+16
-16
effects/cube/cube_proxy.h
effects/cube/cube_proxy.h
+7
-7
effects/cube/cubeslide.cpp
effects/cube/cubeslide.cpp
+405
-505
effects/cube/cubeslide.h
effects/cube/cubeslide.h
+39
-40
effects/cube/cubeslide_config.cpp
effects/cube/cubeslide_config.cpp
+32
-32
effects/cube/cubeslide_config.h
effects/cube/cubeslide_config.h
+13
-13
effects/dashboard/dashboard.cpp
effects/dashboard/dashboard.cpp
+81
-102
effects/dashboard/dashboard.h
effects/dashboard/dashboard.h
+29
-29
effects/dashboard/dashboard_config.h
effects/dashboard/dashboard_config.h
+1
-1
effects/desktopgrid/desktopgrid.cpp
effects/desktopgrid/desktopgrid.cpp
+873
-1064
effects/desktopgrid/desktopgrid.h
effects/desktopgrid/desktopgrid.h
+111
-111
effects/desktopgrid/desktopgrid_config.cpp
effects/desktopgrid/desktopgrid_config.cpp
+91
-94
effects/desktopgrid/desktopgrid_config.h
effects/desktopgrid/desktopgrid_config.h
+20
-20
effects/dialogparent/dialogparent.cpp
effects/dialogparent/dialogparent.cpp
+40
-46
effects/dialogparent/dialogparent.h
effects/dialogparent/dialogparent.h
+19
-19
effects/diminactive/diminactive.cpp
effects/diminactive/diminactive.cpp
+63
-70
effects/diminactive/diminactive.h
effects/diminactive/diminactive.h
+20
-20
effects/diminactive/diminactive_config.cpp
effects/diminactive/diminactive_config.cpp
+11
-11
effects/diminactive/diminactive_config.h
effects/diminactive/diminactive_config.h
+11
-11
effects/dimscreen/dimscreen.cpp
effects/dimscreen/dimscreen.cpp
+48
-56
effects/dimscreen/dimscreen.h
effects/dimscreen/dimscreen.h
+18
-18
effects/explosion/explosion.cpp
effects/explosion/explosion.cpp
+58
-73
effects/explosion/explosion.h
effects/explosion/explosion.h
+28
-28
effects/fade/fade.cpp
effects/fade/fade.cpp
+113
-129
effects/fade/fade.h
effects/fade/fade.h
+35
-35
effects/fadedesktop/fadedesktop.cpp
effects/fadedesktop/fadedesktop.cpp
+48
-54
effects/fadedesktop/fadedesktop.h
effects/fadedesktop/fadedesktop.h
+15
-15
effects/fallapart/fallapart.cpp
effects/fallapart/fallapart.cpp
+78
-86
effects/fallapart/fallapart.h
effects/fallapart/fallapart.h
+15
-15
effects/flipswitch/flipswitch.cpp
effects/flipswitch/flipswitch.cpp
+534
-674
effects/flipswitch/flipswitch.h
effects/flipswitch/flipswitch.h
+77
-79
effects/flipswitch/flipswitch_config.cpp
effects/flipswitch/flipswitch_config.cpp
+41
-41
effects/flipswitch/flipswitch_config.h
effects/flipswitch/flipswitch_config.h
+16
-16
effects/glide/glide.cpp
effects/glide/glide.cpp
+129
-138
effects/glide/glide.h
effects/glide/glide.h
+41
-43
effects/glide/glide_config.cpp
effects/glide/glide_config.cpp
+16
-16
effects/highlightwindow/highlightwindow.cpp
effects/highlightwindow/highlightwindow.cpp
+106
-111
effects/highlightwindow/highlightwindow.h
effects/highlightwindow/highlightwindow.h
+41
-41
effects/invert/invert.cpp
effects/invert/invert.cpp
+52
-56
effects/invert/invert.h
effects/invert/invert.h
+27
-27
effects/invert/invert_config.cpp
effects/invert/invert_config.cpp
+18
-18
effects/invert/invert_config.h
effects/invert/invert_config.h
+13
-13
effects/login/login.cpp
effects/login/login.cpp
+41
-46
effects/login/login.h
effects/login/login.h
+13
-13
effects/logout/logout.cpp
effects/logout/logout.cpp
+184
-205
effects/logout/logout.h
effects/logout/logout.h
+33
-33
effects/lookingglass/lookingglass.cpp
effects/lookingglass/lookingglass.cpp
+65
-75
effects/lookingglass/lookingglass.h
effects/lookingglass/lookingglass.h
+35
-35
effects/lookingglass/lookingglass_config.cpp
effects/lookingglass/lookingglass_config.cpp
+19
-19
effects/lookingglass/lookingglass_config.h
effects/lookingglass/lookingglass_config.h
+15
-15
effects/magiclamp/magiclamp.cpp
effects/magiclamp/magiclamp.cpp
+166
-207
effects/magiclamp/magiclamp.h
effects/magiclamp/magiclamp.h
+28
-29
effects/magiclamp/magiclamp_config.cpp
effects/magiclamp/magiclamp_config.cpp
+17
-17
effects/magiclamp/magiclamp_config.h
effects/magiclamp/magiclamp_config.h
+13
-13
effects/magnifier/magnifier.cpp
effects/magnifier/magnifier.cpp
+69
-79
effects/magnifier/magnifier.h
effects/magnifier/magnifier.h
+21
-21
effects/magnifier/magnifier_config.cpp
effects/magnifier/magnifier_config.cpp
+17
-17
effects/magnifier/magnifier_config.h
effects/magnifier/magnifier_config.h
+15
-15
effects/minimizeanimation/minimizeanimation.cpp
effects/minimizeanimation/minimizeanimation.cpp
+46
-52
effects/minimizeanimation/minimizeanimation.h
effects/minimizeanimation/minimizeanimation.h
+17
-17
effects/mousemark/mousemark.cpp
effects/mousemark/mousemark.cpp
+75
-86
effects/mousemark/mousemark.h
effects/mousemark/mousemark.h
+21
-21
effects/mousemark/mousemark_config.cpp
effects/mousemark/mousemark_config.cpp
+20
-20
effects/mousemark/mousemark_config.h
effects/mousemark/mousemark_config.h
+15
-15
effects/presentwindows/presentwindows.cpp
effects/presentwindows/presentwindows.cpp
+1129
-1310
effects/presentwindows/presentwindows.h
effects/presentwindows/presentwindows.h
+219
-215
effects/presentwindows/presentwindows_config.cpp
effects/presentwindows/presentwindows_config.cpp
+112
-112
effects/presentwindows/presentwindows_config.h
effects/presentwindows/presentwindows_config.h
+16
-16
effects/presentwindows/presentwindows_proxy.cpp
effects/presentwindows/presentwindows_proxy.cpp
+9
-9
effects/presentwindows/presentwindows_proxy.h
effects/presentwindows/presentwindows_proxy.h
+8
-8
effects/resize/resize.cpp
effects/resize/resize.cpp
+63
-73
effects/resize/resize.h
effects/resize/resize.h
+21
-19
effects/resize/resize_config.cpp
effects/resize/resize_config.cpp
+26
-26
effects/resize/resize_config.h
effects/resize/resize_config.h
+12
-12
effects/scalein/scalein.cpp
effects/scalein/scalein.cpp
+42
-45
effects/scalein/scalein.h
effects/scalein/scalein.h
+13
-13
effects/screenshot/screenshot.cpp
effects/screenshot/screenshot.cpp
+58
-71
effects/screenshot/screenshot.h
effects/screenshot/screenshot.h
+23
-24
effects/sheet/sheet.cpp
effects/sheet/sheet.cpp
+89
-102
effects/sheet/sheet.h
effects/sheet/sheet.h
+34
-35
effects/showfps/showfps.cpp
effects/showfps/showfps.cpp
+195
-212
effects/showfps/showfps.h
effects/showfps/showfps.h
+35
-35
effects/showfps/showfps_config.cpp
effects/showfps/showfps_config.cpp
+16
-16
effects/showfps/showfps_config.h
effects/showfps/showfps_config.h
+13
-13
effects/showpaint/showpaint.cpp
effects/showpaint/showpaint.cpp
+35
-34
effects/showpaint/showpaint.h
effects/showpaint/showpaint.h
+12
-12
effects/slide/slide.cpp
effects/slide/slide.cpp
+127
-147
effects/slide/slide.h
effects/slide/slide.h
+20
-20
effects/slideback/slideback.cpp
effects/slideback/slideback.cpp
+204
-267
effects/slideback/slideback.h
effects/slideback/slideback.h
+46
-46
effects/slidingpopups/slidingpopups.cpp
effects/slidingpopups/slidingpopups.cpp
+110
-126
effects/slidingpopups/slidingpopups.h
effects/slidingpopups/slidingpopups.h
+33
-35
effects/snaphelper/snaphelper.cpp
effects/snaphelper/snaphelper.cpp
+54
-60
effects/snaphelper/snaphelper.h
effects/snaphelper/snaphelper.h
+20
-20
effects/startupfeedback/startupfeedback.cpp
effects/startupfeedback/startupfeedback.cpp
+184
-210
effects/startupfeedback/startupfeedback.h
effects/startupfeedback/startupfeedback.h
+39
-40
effects/taskbarthumbnail/taskbarthumbnail.cpp
effects/taskbarthumbnail/taskbarthumbnail.cpp
+76
-81
effects/taskbarthumbnail/taskbarthumbnail.h
effects/taskbarthumbnail/taskbarthumbnail.h
+19
-20
effects/thumbnailaside/thumbnailaside.cpp
effects/thumbnailaside/thumbnailaside.cpp
+82
-91
effects/thumbnailaside/thumbnailaside.h
effects/thumbnailaside/thumbnailaside.h
+25
-26
effects/thumbnailaside/thumbnailaside_config.cpp
effects/thumbnailaside/thumbnailaside_config.cpp
+17
-17
effects/thumbnailaside/thumbnailaside_config.h
effects/thumbnailaside/thumbnailaside_config.h
+15
-15
effects/trackmouse/trackmouse.cpp
effects/trackmouse/trackmouse.cpp
+95
-107
effects/trackmouse/trackmouse.h
effects/trackmouse/trackmouse.h
+24
-24
effects/trackmouse/trackmouse_config.cpp
effects/trackmouse/trackmouse_config.cpp
+66
-69
effects/trackmouse/trackmouse_config.h
effects/trackmouse/trackmouse_config.h
+21
-21
effects/translucency/translucency.cpp
effects/translucency/translucency.cpp
+104
-129
effects/translucency/translucency.h
effects/translucency/translucency.h
+27
-27
effects/translucency/translucency_config.cpp
effects/translucency/translucency_config.cpp
+45
-45
effects/translucency/translucency_config.h
effects/translucency/translucency_config.h
+11
-11
effects/windowgeometry/windowgeometry.cpp
effects/windowgeometry/windowgeometry.cpp
+73
-80
effects/windowgeometry/windowgeometry.h
effects/windowgeometry/windowgeometry.h
+6
-4
effects/windowgeometry/windowgeometry_config.cpp
effects/windowgeometry/windowgeometry_config.cpp
+22
-22
effects/wobblywindows/wobblywindows.cpp
effects/wobblywindows/wobblywindows.cpp
+226
-365
effects/wobblywindows/wobblywindows.h
effects/wobblywindows/wobblywindows.h
+108
-111
effects/wobblywindows/wobblywindows_config.cpp
effects/wobblywindows/wobblywindows_config.cpp
+14
-22
effects/zoom/zoom.cpp
effects/zoom/zoom.cpp
+210
-240
effects/zoom/zoom.h
effects/zoom/zoom.h
+54
-54
effects/zoom/zoom_config.cpp
effects/zoom/zoom_config.cpp
+39
-39
effects/zoom/zoom_config.h
effects/zoom/zoom_config.h
+18
-18
events.cpp
events.cpp
+1070
-1218
geometry.cpp
geometry.cpp
+2001
-2260
geometrytip.cpp
geometrytip.cpp
+26
-29
geometrytip.h
geometrytip.h
+9
-9
group.cpp
group.cpp
+544
-627
group.h
group.h
+49
-49
kcmkwin/kwincompositing/ktimerdialog.cpp
kcmkwin/kwincompositing/ktimerdialog.cpp
+67
-67
kcmkwin/kwincompositing/ktimerdialog.h
kcmkwin/kwincompositing/ktimerdialog.h
+21
-22
kcmkwin/kwincompositing/main.cpp
kcmkwin/kwincompositing/main.cpp
+289
-324
kcmkwin/kwincompositing/main.h
kcmkwin/kwincompositing/main.h
+47
-47
kcmkwin/kwindecoration/buttons.cpp
kcmkwin/kwindecoration/buttons.cpp
+535
-535
kcmkwin/kwindecoration/buttons.h
kcmkwin/kwindecoration/buttons.h
+131
-131
kcmkwin/kwindecoration/buttonsconfigdialog.cpp
kcmkwin/kwindecoration/buttonsconfigdialog.cpp
+53
-53
kcmkwin/kwindecoration/buttonsconfigdialog.h
kcmkwin/kwindecoration/buttonsconfigdialog.h
+19
-19
kcmkwin/kwindecoration/configdialog.cpp
kcmkwin/kwindecoration/configdialog.cpp
+90
-98
kcmkwin/kwindecoration/configdialog.h
kcmkwin/kwindecoration/configdialog.h
+25
-25
kcmkwin/kwindecoration/decorationdelegate.cpp
kcmkwin/kwindecoration/decorationdelegate.cpp
+23
-25
kcmkwin/kwindecoration/decorationdelegate.h
kcmkwin/kwindecoration/decorationdelegate.h
+7
-7
kcmkwin/kwindecoration/decorationmodel.cpp
kcmkwin/kwindecoration/decorationmodel.cpp
+253
-274
kcmkwin/kwindecoration/decorationmodel.h
kcmkwin/kwindecoration/decorationmodel.h
+83
-84
kcmkwin/kwindecoration/kwindecoration.cpp
kcmkwin/kwindecoration/kwindecoration.cpp
+146
-165
kcmkwin/kwindecoration/kwindecoration.h
kcmkwin/kwindecoration/kwindecoration.h
+31
-31
kcmkwin/kwindecoration/pixmaps.h
kcmkwin/kwindecoration/pixmaps.h
+45
-34
kcmkwin/kwindecoration/preview.cpp
kcmkwin/kwindecoration/preview.cpp
+276
-294
kcmkwin/kwindecoration/preview.h
kcmkwin/kwindecoration/preview.h
+121
-121
kcmkwin/kwindesktop/desktopnameswidget.cpp
kcmkwin/kwindesktop/desktopnameswidget.cpp
+48
-55
kcmkwin/kwindesktop/desktopnameswidget.h
kcmkwin/kwindesktop/desktopnameswidget.h
+21
-21
kcmkwin/kwindesktop/main.cpp
kcmkwin/kwindesktop/main.cpp
+281
-316
kcmkwin/kwindesktop/main.h
kcmkwin/kwindesktop/main.h
+43
-43
kcmkwin/kwinoptions/main.cpp
kcmkwin/kwinoptions/main.cpp
+129
-129
kcmkwin/kwinoptions/main.h
kcmkwin/kwinoptions/main.h
+26
-26
kcmkwin/kwinoptions/mouse.cpp
kcmkwin/kwinoptions/mouse.cpp
+738
-731
kcmkwin/kwinoptions/mouse.h
kcmkwin/kwinoptions/mouse.h
+70
-64
kcmkwin/kwinoptions/windows.cpp
kcmkwin/kwinoptions/windows.cpp
+373
-349
kcmkwin/kwinoptions/windows.h
kcmkwin/kwinoptions/windows.h
+134
-128
kcmkwin/kwinrules/detectwidget.cpp
kcmkwin/kwinrules/detectwidget.cpp
+111
-117
kcmkwin/kwinrules/detectwidget.h
kcmkwin/kwinrules/detectwidget.h
+39
-39
kcmkwin/kwinrules/kcm.cpp
kcmkwin/kwinrules/kcm.cpp
+34
-34
kcmkwin/kwinrules/kcm.h
kcmkwin/kwinrules/kcm.h
+13
-13
kcmkwin/kwinrules/main.cpp
kcmkwin/kwinrules/main.cpp
+109
-137
kcmkwin/kwinrules/ruleslist.cpp
kcmkwin/kwinrules/ruleslist.cpp
+106
-110
kcmkwin/kwinrules/ruleslist.h
kcmkwin/kwinrules/ruleslist.h
+19
-19
kcmkwin/kwinrules/ruleswidget.cpp
kcmkwin/kwinrules/ruleswidget.cpp
+490
-505
kcmkwin/kwinrules/ruleswidget.h
kcmkwin/kwinrules/ruleswidget.h
+99
-99
kcmkwin/kwinscreenedges/main.cpp
kcmkwin/kwinscreenedges/main.cpp
+355
-381
kcmkwin/kwinscreenedges/main.h
kcmkwin/kwinscreenedges/main.h
+47
-48
kcmkwin/kwinscreenedges/monitor.cpp
kcmkwin/kwinscreenedges/monitor.cpp
+156
-168
kcmkwin/kwinscreenedges/monitor.h
kcmkwin/kwinscreenedges/monitor.h
+59
-60
kcmkwin/kwintabbox/layoutconfig.cpp
kcmkwin/kwintabbox/layoutconfig.cpp
+105
-132
kcmkwin/kwintabbox/layoutconfig.h
kcmkwin/kwintabbox/layoutconfig.h
+11
-11
kcmkwin/kwintabbox/main.cpp
kcmkwin/kwintabbox/main.cpp
+388
-404
kcmkwin/kwintabbox/main.h
kcmkwin/kwintabbox/main.h
+49
-48
kcmkwin/kwintabbox/previewhandlerimpl.cpp
kcmkwin/kwintabbox/previewhandlerimpl.cpp
+73
-75
kcmkwin/kwintabbox/previewhandlerimpl.h
kcmkwin/kwintabbox/previewhandlerimpl.h
+33
-33
killer/killer.cpp
killer/killer.cpp
+32
-36
killwindow.cpp
killwindow.cpp
+31
-38
killwindow.h
killwindow.h
+9
-9
kwinbindings.cpp
kwinbindings.cpp
+199
-199
lanczosfilter.cpp
lanczosfilter.cpp
+265
-306
lanczosfilter.h
lanczosfilter.h
+36
-36
layers.cpp
layers.cpp
+427
-483
lib/kcommondecoration.cpp
lib/kcommondecoration.cpp
+423
-431
lib/kcommondecoration.h
lib/kcommondecoration.h
+411
-413
lib/kcommondecoration_p.cpp
lib/kcommondecoration_p.cpp
+49
-49
lib/kcommondecoration_p.h
lib/kcommondecoration_p.h
+23
-23
lib/kdecoration.cpp
lib/kdecoration.cpp
+324
-323
lib/kdecoration.h
lib/kdecoration.h
+659
-668
lib/kdecoration_p.cpp
lib/kdecoration_p.cpp
+73
-80
lib/kdecoration_p.h
lib/kdecoration_p.h
+21
-21
lib/kdecoration_plugins_p.cpp
lib/kdecoration_plugins_p.cpp
+85
-96
lib/kdecoration_plugins_p.h
lib/kdecoration_plugins_p.h
+23
-23
lib/kdecorationbridge.h
lib/kdecorationbridge.h
+65
-65
lib/kdecorationfactory.cpp
lib/kdecorationfactory.cpp
+43
-43
lib/kdecorationfactory.h
lib/kdecorationfactory.h
+83
-83
lib/kwineffects.cpp
lib/kwineffects.cpp
+722
-765
lib/kwineffects.h
lib/kwineffects.h
+1442
-1424
lib/kwinglobals.cpp
lib/kwinglobals.cpp
+64
-72
lib/kwinglobals.h
lib/kwinglobals.h
+74
-65
lib/kwinglplatform.cpp
lib/kwinglplatform.cpp
+112
-116
lib/kwinglplatform.h
lib/kwinglplatform.h
+7
-7
lib/kwinglutils.cpp
lib/kwinglutils.cpp
+556
-629
lib/kwinglutils.h
lib/kwinglutils.h
+429
-407
lib/kwinglutils_funcs.cpp
lib/kwinglutils_funcs.cpp
+110
-127
lib/kwinglutils_funcs.h
lib/kwinglutils_funcs.h
+70
-70
lib/kwinxrenderutils.cpp
lib/kwinxrenderutils.cpp
+82
-88
lib/kwinxrenderutils.h
lib/kwinxrenderutils.h
+39
-39
main.cpp
main.cpp
+237
-257
main.h
main.h
+18
-18
manage.cpp
manage.cpp
+281
-322
notifications.cpp
notifications.cpp
+90
-94
notifications.h
notifications.h
+38
-40
nvidiahack.cpp
nvidiahack.cpp
+11
-11
options.cpp
options.cpp
+207
-217
options.h
options.h
+394
-357
paintredirector.cpp
paintredirector.cpp
+70
-79
paintredirector.h
paintredirector.h
+22
-22
placement.cpp
placement.cpp
+353
-395
placement.h
placement.h
+57
-59
plugins.cpp
plugins.cpp
+14
-14
plugins.h
plugins.h
+7
-7
rules.cpp
rules.cpp
+677
-716
rules.h
rules.h
+248
-253
scene.cpp
scene.cpp
+239
-260
scene.h
scene.h
+226
-222
scene_basic.cpp
scene_basic.cpp
+47
-49
scene_basic.h
scene_basic.h
+17
-15
scene_opengl.cpp
scene_opengl.cpp
+578
-645
scene_opengl.h
scene_opengl.h
+152
-151
scene_opengl_egl.cpp
scene_opengl_egl.cpp
+93
-103
scene_opengl_glx.cpp
scene_opengl_glx.cpp
+401
-466
scene_xrender.cpp
scene_xrender.cpp
+498
-567
scene_xrender.h
scene_xrender.h
+85
-83
scripting/chelate.cpp
scripting/chelate.cpp
+107
-148
scripting/chelate.h
scripting/chelate.h
+28
-28
scripting/client.cpp
scripting/client.cpp
+148
-244
scripting/client.h
scripting/client.h
+130
-130
scripting/kwsapigen.cpp
scripting/kwsapigen.cpp
+99
-99
scripting/meta.cpp
scripting/meta.cpp
+71
-105
scripting/meta.h
scripting/meta.h
+4
-4
scripting/plasma-backportglobal.h
scripting/plasma-backportglobal.h
+76
-78
scripting/s_clientgroup.cpp
scripting/s_clientgroup.cpp
+86
-150
scripting/s_clientgroup.h
scripting/s_clientgroup.h
+36
-36
scripting/scripting.cpp
scripting/scripting.cpp
+34
-45
scripting/scripting.h
scripting/scripting.h
+49
-51
scripting/timer.cpp
scripting/timer.cpp
+0
-0
scripting/toplevel.cpp
scripting/toplevel.cpp
+20
-33
scripting/toplevel.h
scripting/toplevel.h
+44
-44
scripting/windowinfo.cpp
scripting/windowinfo.cpp
+4
-4
scripting/windowinfo.h
scripting/windowinfo.h
+40
-40
scripting/workspace.cpp
scripting/workspace.cpp
+87
-139
scripting/workspace.h
scripting/workspace.h
+56
-56
scripting/workspaceproxy.cpp
scripting/workspaceproxy.cpp
+4
-4
scripting/workspaceproxy.h
scripting/workspaceproxy.h
+35
-35
sm.cpp
sm.cpp
+253
-285
sm.h
sm.h
+25
-25
tabbox.cpp
tabbox.cpp
+673
-754
tabbox.h
tabbox.h
+96
-90
tabbox/clientitemdelegate.cpp
tabbox/clientitemdelegate.cpp
+188
-214
tabbox/clientitemdelegate.h
tabbox/clientitemdelegate.h
+51
-49
tabbox/clientmodel.cpp
tabbox/clientmodel.cpp
+138
-158
tabbox/clientmodel.h
tabbox/clientmodel.h
+48
-47
tabbox/desktopitemdelegate.cpp
tabbox/desktopitemdelegate.cpp
+213
-235
tabbox/desktopitemdelegate.h
tabbox/desktopitemdelegate.h
+46
-46
tabbox/desktopmodel.cpp
tabbox/desktopmodel.cpp
+96
-104
tabbox/desktopmodel.h
tabbox/desktopmodel.h
+35
-34
tabbox/itemlayoutconfig.cpp
tabbox/itemlayoutconfig.cpp
+31
-31
tabbox/itemlayoutconfig.h
tabbox/itemlayoutconfig.h
+352
-281
tabbox/tabboxconfig.cpp
tabbox/tabboxconfig.cpp
+113
-115
tabbox/tabboxconfig.h
tabbox/tabboxconfig.h
+265
-247
tabbox/tabboxhandler.cpp
tabbox/tabboxhandler.cpp
+470
-512
tabbox/tabboxhandler.h
tabbox/tabboxhandler.h
+243
-243
tabbox/tabboxview.cpp
tabbox/tabboxview.cpp
+288
-312
tabbox/tabboxview.h
tabbox/tabboxview.h
+129
-111
tile.cpp
tile.cpp
+53
-57
tile.h
tile.h
+54
-54
tiling.cpp
tiling.cpp
+244
-279
tilinglayout.cpp
tilinglayout.cpp
+129
-138
tilinglayout.h
tilinglayout.h
+93
-93
tilinglayoutfactory.cpp
tilinglayoutfactory.cpp
+45
-51
tilinglayoutfactory.h
tilinglayoutfactory.h
+32
-32
tilinglayouts/columns/columns.cpp
tilinglayouts/columns/columns.cpp
+64
-74
tilinglayouts/columns/columns.h
tilinglayouts/columns/columns.h
+10
-10
tilinglayouts/floating/floating.cpp
tilinglayouts/floating/floating.cpp
+23
-24
tilinglayouts/floating/floating.h
tilinglayouts/floating/floating.h
+23
-23
tilinglayouts/spiral/spiral.cpp
tilinglayouts/spiral/spiral.cpp
+30
-33
tilinglayouts/spiral/spiral.h
tilinglayouts/spiral/spiral.h
+12
-12
tools/decobenchmark/main.cpp
tools/decobenchmark/main.cpp
+74
-74
tools/decobenchmark/main.h
tools/decobenchmark/main.h
+13
-13
tools/decobenchmark/preview.cpp
tools/decobenchmark/preview.cpp
+133
-137
tools/decobenchmark/preview.h
tools/decobenchmark/preview.h
+86
-86
tools/show_icons.cpp
tools/show_icons.cpp
+27
-28
tools/test_gravity.cpp
tools/test_gravity.cpp
+48
-60
tools/xreply/xreply.c
tools/xreply/xreply.c
+92
-109
toplevel.cpp
toplevel.cpp
+143
-153
toplevel.h
toplevel.h
+251
-251
unmanaged.cpp
unmanaged.cpp
+54
-58
unmanaged.h
unmanaged.h
+21
-21
useractions.cpp
useractions.cpp
+1097
-1186
utils.cpp
utils.cpp
+214
-232
utils.h
utils.h
+153
-160
workspace.cpp
workspace.cpp
+1562
-1732
workspace.h
workspace.h
+1303
-1180
No files found.
activation.cpp
View file @
0a7e48f7
This diff is collapsed.
Click to expand it.
atoms.cpp
View file @
0a7e48f7
...
...
@@ -27,7 +27,7 @@ namespace KWin
{
Atoms
::
Atoms
()
{
{
const
int
max
=
50
;
Atom
*
atoms
[
max
];
...
...
@@ -84,41 +84,41 @@ Atoms::Atoms()
atoms
[
n
]
=
&
kde_system_tray_embedding
;
names
[
n
++
]
=
(
char
*
)
"_KDE_SYSTEM_TRAY_EMBEDDING"
;
atoms
[
n
]
=
&
net_wm_take_activity
;
names
[
n
++
]
=
(
char
*
)
"_NET_WM_TAKE_ACTIVITY"
;
atoms
[
n
]
=
&
net_wm_window_opacity
;
names
[
n
++
]
=
(
char
*
)
"_NET_WM_WINDOW_OPACITY"
;
Atom
fake
;
atoms
[
n
]
=
&
fake
;
names
[
n
++
]
=
(
char
*
)
"_DT_SM_WINDOW_INFO"
;
atoms
[
n
]
=
&
fake
;
names
[
n
++
]
=
(
char
*
)
"_MOTIF_WM_INFO"
;
// #172028
atoms
[
n
]
=
&
xdnd_aware
;
names
[
n
++
]
=
(
char
*
)
"XdndAware"
;
atoms
[
n
]
=
&
xdnd_position
;
names
[
n
++
]
=
(
char
*
)
"XdndPosition"
;
atoms
[
n
]
=
&
net_frame_extents
;
names
[
n
++
]
=
(
char
*
)
"_NET_FRAME_EXTENTS"
;
atoms
[
n
]
=
&
kde_net_wm_frame_strut
;
names
[
n
++
]
=
(
char
*
)
"_KDE_NET_WM_FRAME_STRUT"
;
atoms
[
n
]
=
&
net_wm_sync_request_counter
;
names
[
n
++
]
=
(
char
*
)
"_NET_WM_SYNC_REQUEST_COUNTER"
;
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
atoms.h
View file @
0a7e48f7
...
...
@@ -29,38 +29,38 @@ namespace KWin
{
class
Atoms
{
public:
Atoms
();
{
public:
Atoms
();
Atom
kwin_running
;
Atom
activities
;
Atom
kwin_running
;
Atom
activities
;
Atom
wm_protocols
;
Atom
wm_delete_window
;
Atom
wm_take_focus
;
Atom
wm_change_state
;
Atom
wm_client_leader
;
Atom
wm_window_role
;
Atom
wm_state
;
Atom
sm_client_id
;
Atom
wm_protocols
;
Atom
wm_delete_window
;
Atom
wm_take_focus
;
Atom
wm_change_state
;
Atom
wm_client_leader
;
Atom
wm_window_role
;
Atom
wm_state
;
Atom
sm_client_id
;
Atom
motif_wm_hints
;
Atom
net_wm_context_help
;
Atom
net_wm_ping
;
Atom
kde_wm_change_state
;
Atom
net_wm_user_time
;
Atom
kde_net_wm_user_creation_time
;
Atom
kde_system_tray_embedding
;
Atom
net_wm_take_activity
;
Atom
net_wm_window_opacity
;
Atom
xdnd_aware
;
Atom
xdnd_position
;
Atom
net_frame_extents
;
Atom
kde_net_wm_frame_strut
;
Atom
net_wm_sync_request_counter
;
Atom
net_wm_sync_request
;
};
Atom
motif_wm_hints
;
Atom
net_wm_context_help
;
Atom
net_wm_ping
;
Atom
kde_wm_change_state
;
Atom
net_wm_user_time
;
Atom
kde_net_wm_user_creation_time
;
Atom
kde_system_tray_embedding
;
Atom
net_wm_take_activity
;
Atom
net_wm_window_opacity
;
Atom
xdnd_aware
;
Atom
xdnd_position
;
Atom
net_frame_extents
;
Atom
kde_net_wm_frame_strut
;
Atom
net_wm_sync_request_counter
;
Atom
net_wm_sync_request
;
};
extern
Atoms
*
atoms
;
...
...
bridge.cpp
View file @
0a7e48f7
...
...
@@ -29,155 +29,151 @@ 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
);
}
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
);
}
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
so we have to translate them to a shared coord system
we choose ours */
...
...
@@ -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
;
}
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
()
)
{