We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8e6105 commit bf24f8fCopy full SHA for bf24f8f
src/Options.cpp
@@ -78,7 +78,9 @@ void Options::Load()
78
message.FindRect("wind_rect", &wind_rect);
79
message.FindMessage("columnsState", &columnsState);
80
int8 tmp;
81
- if (message.FindInt8("workspace_activation", &((int8)workspace_activation)) != B_OK)
+ if (message.FindInt8("workspace_activation", &tmp) == B_OK)
82
+ workspace_activation = static_cast<workspace_type>(tmp);
83
+ else
84
workspace_activation = current_workspace;
85
if (message.FindInt32("workspaces", &workspaces) != B_OK)
86
workspaces = 1;
src/Options.h
@@ -24,7 +24,7 @@
24
25
struct Options {
26
int32 refresh;
27
- enum {
+ enum workspace_type {
28
current_workspace,
29
all_workspaces,
30
saved_workspace
0 commit comments