kwin/tabbox
Martin Gräßlin d75e7a6d60 Use smart pointers to protect access to TabBoxClient
Client holds a SharedPointer to the TabBoxClient and only
provides access to a WeakPointer which is passed to TabBox.
ClientModel is adjusted to hold a list of WeakPointers instead
of the direct pointers.

This fixes the following reproducable crash:
1. Configure both primary and secondary TabBox with different
   layouts
2. Use primary TabBox
3. Close a window, best the one which used to be active
4. Use secondary TabBox
-> Crash

The reason is that the ClientModel still contains the pointer
to the deleted TabBoxClient in step 3 and while creating the
layout access to the TabBoxClient is needed to get the Client's
icon.

By using the weak pointer it can be ensured that we don't try
to dereference the deleted pointer and prevent the crash.

CCBUG: 290482
CCBUG: 285747
CCBUG: 237345
REVIEW: 105000
2012-05-22 18:37:41 +02:00
..
qml Window Switching layouts are not flickable over bounds 2012-05-22 18:29:30 +02:00
clientmodel.cpp Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
clientmodel.h Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
CMakeLists.txt
declarative.cpp Add CMake variable to rename kwin binaries 2012-05-10 10:25:15 +02:00
declarative.h Add proper key navigation to layout based window switchers 2012-03-25 11:55:35 +02:00
desktopmodel.cpp
desktopmodel.h
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) 2012-05-20 12:02:09 +02:00
tabbox.cpp Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
tabbox.h Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
tabboxconfig.cpp Refactor checks for inclusion of TabBoxClients in the client list 2012-03-05 20:26:35 +01:00
tabboxconfig.h Show windows from all screen in TabBox by default 2012-03-30 22:16:24 +02:00
tabboxhandler.cpp Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
tabboxhandler.h Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00