Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
489b73d5
Commit
489b73d5
authored
13 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
scroll keys: Sanitise offsets before rendering
parent
8899df70
No related branches found
Branches containing commit
Tags
1.4.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/keyevents.c
+8
-0
8 additions, 0 deletions
src/keyevents.c
with
9 additions
and
0 deletions
ChangeLog
+
1
−
0
View file @
489b73d5
...
...
@@ -5,6 +5,7 @@ git HEAD
* Add --magick-timeout option to set imagemagick conversion timeout or
disable it altogether
* Clean up temporary / to-delete files when receiveng SIG{INT,TERM,QUIT}
* Do not scroll past image borders when using key bindings
Tue, 06 Mar 2012 13:13:35 +0100 Daniel Friesel <derf@finalrewind.org>
...
...
This diff is collapsed.
Click to expand it.
src/keyevents.c
+
8
−
0
View file @
489b73d5
...
...
@@ -479,34 +479,42 @@ void feh_event_handle_keypress(XEvent * ev)
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_right
,
keysym
,
state
))
{
winwid
->
im_x
-=
20
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
1
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_left
,
keysym
,
state
))
{
winwid
->
im_x
+=
20
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
1
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_down
,
keysym
,
state
))
{
winwid
->
im_y
-=
20
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
1
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_up
,
keysym
,
state
))
{
winwid
->
im_y
+=
20
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
1
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_right_page
,
keysym
,
state
))
{
winwid
->
im_x
-=
winwid
->
w
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
0
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_left_page
,
keysym
,
state
))
{
winwid
->
im_x
+=
winwid
->
w
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
0
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_down_page
,
keysym
,
state
))
{
winwid
->
im_y
-=
winwid
->
h
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
0
);
}
else
if
(
feh_is_kp
(
&
keys
.
scroll_up_page
,
keysym
,
state
))
{
winwid
->
im_y
+=
winwid
->
h
;
winwidget_sanitise_offsets
(
winwid
);
winwidget_render_image
(
winwid
,
0
,
0
);
}
else
if
(
feh_is_kp
(
&
keys
.
jump_back
,
keysym
,
state
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment