Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geithner, Thomas
desk-control
Commits
7292e0b6
Commit
7292e0b6
authored
Oct 11, 2017
by
Geithner, Thomas
Committed by
Mall, Anon
Oct 11, 2017
Browse files
fixed min/max height handling
parent
756b0e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/desk-controller.cpp
View file @
7292e0b6
...
...
@@ -33,8 +33,8 @@ Controller::Controller(Config& conf):
{
m_offset
=
stoi
(
m_config
.
get
(
"offset"
,
"0"
));
m_minHeight
=
stoi
(
m_config
.
get
(
"min_height"
,
std
::
to_string
(
MIN_HEIGHT
)));
m_maxHeight
=
stoi
(
m_config
.
get
(
"max_height"
,
std
::
to_string
(
MAX_HEIGHT
)));
m_minHeight
=
stoi
(
m_config
.
get
(
"min_height"
,
std
::
to_string
(
MIN_HEIGHT
)))
+
m_offset
;
m_maxHeight
=
stoi
(
m_config
.
get
(
"max_height"
,
std
::
to_string
(
MAX_HEIGHT
)))
+
m_offset
;
}
void
...
...
@@ -54,8 +54,8 @@ Controller::setOffset(int offset)
{
m_config
.
set
(
"offset"
,
offset
);
m_m
ax
Height
=
m_offset
+
MAX_HEIGHT
;
m_m
in
Height
=
m_offset
+
MIN_HEIGHT
;
m_m
in
Height
=
stoi
(
m_config
.
get
(
"min_height"
,
std
::
to_string
(
MIN_HEIGHT
)))
+
m_offset
;
m_m
ax
Height
=
stoi
(
m_config
.
get
(
"max_height"
,
std
::
to_string
(
MAX_HEIGHT
)))
+
m_offset
;
}
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment