Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
ce311407
Commit
ce311407
authored
May 07, 2008
by
Hisham Muhammad
Browse files
Fix mouseclick handling in top bar
parent
15ab0ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htop.c
View file @
ce311407
...
@@ -459,7 +459,7 @@ int main(int argc, char** argv) {
...
@@ -459,7 +459,7 @@ int main(int argc, char** argv) {
int
ok
=
getmouse
(
&
mevent
);
int
ok
=
getmouse
(
&
mevent
);
if
(
ok
==
OK
)
{
if
(
ok
==
OK
)
{
if
(
mevent
.
y
==
panel
->
y
)
{
if
(
mevent
.
y
==
panel
->
y
)
{
int
x
=
panel
->
scrollH
+
mevent
.
x
;
int
x
=
panel
->
scrollH
+
mevent
.
x
+
1
;
ProcessField
field
=
ProcessList_keyAt
(
pl
,
x
);
ProcessField
field
=
ProcessList_keyAt
(
pl
,
x
);
if
(
field
==
pl
->
sortKey
)
{
if
(
field
==
pl
->
sortKey
)
{
ProcessList_invertSortOrder
(
pl
);
ProcessList_invertSortOrder
(
pl
);
...
...
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