From d7b4d4119c76e716e50230c97c1347fee54cea4e Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 11 Apr 2005 20:11:46 +0000 Subject: [PATCH] This is a temporary implementation of ctrl-tab/switching between windows. It can be removed when we can use Twitcher (if we really want to use it in the end). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12294 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/RootLayer.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/servers/app/RootLayer.cpp b/src/servers/app/RootLayer.cpp index 4193fe1e41..eac4978ecf 100644 --- a/src/servers/app/RootLayer.cpp +++ b/src/servers/app/RootLayer.cpp @@ -1298,7 +1298,7 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg) STRACE(("Key Down: 0x%lx\n",scancode)); -#if DISPLAYDRIVER == HWDRIVER +#if !TEST_MODE // Check for workspace change or safe video mode if(scancode>0x01 && scancode<0x0e) { @@ -1333,7 +1333,12 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg) //ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB"); //if(deskbar) //{ - printf("Send Twitcher message key to Deskbar - unimplmemented\n"); + WinBorder *exActive = ActiveWinBorder(); + WinBorder *exFocus = FocusWinBorder(); + if (ActiveWorkspace()->MoveToBack(exFocus)) + show_final_scene(exFocus, exActive); + + //printf("Send Twitcher message key to Deskbar - unimplmemented\n"); if (string) free(string); break; @@ -1408,6 +1413,11 @@ void RootLayer::KeyboardEventHandler(int32 code, BPortLink& msg) //ServerApp *deskbar=app_server->FindApp("application/x-vnd.Be-TSKB"); //if(deskbar) //{ + WinBorder *exActive = ActiveWinBorder(); + WinBorder *exFocus = FocusWinBorder(); + if (ActiveWorkspace()->MoveToBack(exFocus)) + show_final_scene(exFocus, exActive); + printf("Send Twitcher message key to Deskbar - unimplmemented\n"); if (string) free(string);