kwin/tabbox
Martin Gräßlin bd7958392d Verify pointer is valid when calculating the longest caption
The method was missing a check whether the weak pointers in the
internal list got deleted. This could in very unlikely cases
lead to a crash.

In order to verify that adding the null pointer check fixes the
crash a unit test is added to simulate the situation of a
pointer being deleted. This required to add a mock a few
classes of TabBox. A MockTabBoxHandler and MockTabBoxClient are
added implementing the specific interfaces. The DeclarativeView
is completely mocked to make the linker happy. Including the
actual implementation is not possible as it pulls in half of
KWin core.

BUG: 303840
FIXED-IN: 4.9.0
REVIEW: 105645
2012-07-22 19:23:36 +02:00
..
qml SVN_SILENT made messages (.desktop file) 2012-07-21 11:43:56 +02:00
tests Verify pointer is valid when calculating the longest caption 2012-07-22 19:23:36 +02:00
clientmodel.cpp Verify pointer is valid when calculating the longest caption 2012-07-22 19:23:36 +02:00
clientmodel.h Use smart pointers to protect access to TabBoxClient 2012-05-22 18:37:41 +02:00
CMakeLists.txt Verify pointer is valid when calculating the longest caption 2012-07-22 19:23:36 +02:00
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 KWin uses kdelibs coding style. 2011-01-31 20:07:03 +01:00
desktopmodel.h KWin uses kdelibs coding style. 2011-01-31 20:07:03 +01:00
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) 2012-07-19 10:14:19 +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