Skip to content

Commit

Permalink
Launcher: Remove the Launcher app, and all hacks in support of it
Browse files Browse the repository at this point in the history
The Launcher's functionality has been replaced by the app shortcuts in
the system menu.

There were various window management hacks to ensure that the launcher
stayed below all other windows while also being movable, etc.
  • Loading branch information
awesomekling committed Nov 11, 2019
1 parent 26f41c7 commit dd2900e
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 164 deletions.
8 changes: 0 additions & 8 deletions Applications/Launcher/Makefile

This file was deleted.

94 changes: 0 additions & 94 deletions Applications/Launcher/main.cpp

This file was deleted.

46 changes: 0 additions & 46 deletions Base/home/anon/Launcher.ini

This file was deleted.

1 change: 0 additions & 1 deletion Kernel/build-root-filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ cp ../Applications/Downloader/Downloader mnt/bin/Downloader
cp ../Applications/FileManager/FileManager mnt/bin/FileManager
cp ../Applications/FontEditor/FontEditor mnt/bin/FontEditor
cp ../Applications/IRCClient/IRCClient mnt/bin/IRCClient
cp ../Applications/Launcher/Launcher mnt/bin/Launcher
cp ../Applications/SystemMonitor/SystemMonitor mnt/bin/SystemMonitor
cp ../Applications/Taskbar/Taskbar mnt/bin/Taskbar
cp ../Applications/Terminal/Terminal mnt/bin/Terminal
Expand Down
1 change: 0 additions & 1 deletion Kernel/makeall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ build_targets="$build_targets ../Applications/Downloader"
build_targets="$build_targets ../Applications/FileManager"
build_targets="$build_targets ../Applications/FontEditor"
build_targets="$build_targets ../Applications/IRCClient"
build_targets="$build_targets ../Applications/Launcher"
build_targets="$build_targets ../Applications/PaintBrush"
build_targets="$build_targets ../Applications/Piano"
build_targets="$build_targets ../Applications/QuickShow"
Expand Down
1 change: 0 additions & 1 deletion Libraries/LibGUI/GWindowType.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ enum class GWindowType {
Taskbar,
Tooltip,
Menubar,
Launcher,
};
1 change: 0 additions & 1 deletion Servers/WindowServer/WSAPITypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ enum WSAPI_WindowType {
Taskbar,
Tooltip,
Menubar,
Launcher,
};

struct WSAPI_WindowBackingStoreInfo {
Expand Down
3 changes: 0 additions & 3 deletions Servers/WindowServer/WSClientConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ bool WSClientConnection::handle_message(const WSAPI_ClientMessage& message, cons
case WSAPI_WindowType::Menubar:
ws_window_type = WSWindowType::Menubar;
break;
case WSAPI_WindowType::Launcher:
ws_window_type = WSWindowType::Launcher;
break;
case WSAPI_WindowType::Invalid:
default:
dbgprintf("Unknown WSAPI_WindowType: %d\n", message.window.type);
Expand Down
2 changes: 0 additions & 2 deletions Servers/WindowServer/WSWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ static WSAPI_WindowType to_api(WSWindowType ws_type)
return WSAPI_WindowType::Tooltip;
case WSWindowType::Menubar:
return WSAPI_WindowType::Menubar;
case WSWindowType::Launcher:
return WSAPI_WindowType::Launcher;
default:
ASSERT_NOT_REACHED();
}
Expand Down
2 changes: 1 addition & 1 deletion Servers/WindowServer/WSWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class WSWindow final : public CObject

bool is_movable() const
{
return m_type == WSWindowType::Normal || m_type == WSWindowType::Launcher;
return m_type == WSWindowType::Normal;
}

WSWindowFrame& frame() { return m_frame; }
Expand Down
6 changes: 1 addition & 5 deletions Servers/WindowServer/WSWindowManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,6 @@ IterationDecision WSWindowManager::for_each_visible_window_of_type_from_back_to_
template<typename Callback>
IterationDecision WSWindowManager::for_each_visible_window_from_back_to_front(Callback callback)
{
if (for_each_visible_window_of_type_from_back_to_front(WSWindowType::Launcher, callback) == IterationDecision::Break)
return IterationDecision::Break;
if (for_each_visible_window_of_type_from_back_to_front(WSWindowType::Normal, callback) == IterationDecision::Break)
return IterationDecision::Break;
if (for_each_visible_window_of_type_from_back_to_front(WSWindowType::Taskbar, callback) == IterationDecision::Break)
Expand Down Expand Up @@ -350,9 +348,7 @@ IterationDecision WSWindowManager::for_each_visible_window_from_front_to_back(Ca
return IterationDecision::Break;
if (for_each_visible_window_of_type_from_front_to_back(WSWindowType::Tooltip, callback) == IterationDecision::Break)
return IterationDecision::Break;
if (for_each_visible_window_of_type_from_front_to_back(WSWindowType::Normal, callback) == IterationDecision::Break)
return IterationDecision::Break;
return for_each_visible_window_of_type_from_front_to_back(WSWindowType::Launcher, callback);
return for_each_visible_window_of_type_from_front_to_back(WSWindowType::Normal, callback);
}

template<typename Callback>
Expand Down
1 change: 0 additions & 1 deletion Servers/WindowServer/WSWindowType.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ enum class WSWindowType {
Taskbar,
Tooltip,
Menubar,
Launcher,
};

0 comments on commit dd2900e

Please sign in to comment.