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
4abe831a
Commit
4abe831a
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
multiwindow mode: reload all images with USR1/USR2 (not perfect yet)
parent
8e962ba2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
src/multiwindow.c
+4
-0
4 additions, 0 deletions
src/multiwindow.c
src/signals.c
+6
-0
6 additions, 0 deletions
src/signals.c
with
11 additions
and
0 deletions
ChangeLog
+
1
−
0
View file @
4abe831a
...
...
@@ -5,6 +5,7 @@ git HEAD
* Show images in current directory when invoked without file arguments
* Disable antialiasing, either globally (--force-aliasing) or per image
(press 'A' to toggle, keybinding toggle_aliasing)
* Use SIGUSR1/SIGUSR2 to reload all images in multiwindow mode
Sat, 12 Mar 2011 22:49:53 +0100 Daniel Friesel <derf@finalrewind.org>
...
...
This diff is collapsed.
Click to expand it.
src/multiwindow.c
+
4
−
0
View file @
4abe831a
...
...
@@ -28,6 +28,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include
"timers.h"
#include
"filelist.h"
#include
"options.h"
#include
"signals.h"
void
init_multiwindow_mode
(
void
)
{
...
...
@@ -63,5 +64,8 @@ void init_multiwindow_mode(void)
}
free
(
s
);
}
setup_signal_handlers
();
return
;
}
This diff is collapsed.
Click to expand it.
src/signals.c
+
6
−
0
View file @
4abe831a
...
...
@@ -25,6 +25,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include
"feh.h"
#include
"winwidget.h"
#include
"options.h"
void
feh_handle_signal
(
int
);
...
...
@@ -60,12 +61,17 @@ void feh_handle_signal(int signo)
{
winwidget
winwid
=
winwidget_get_first_window_of_type
(
WIN_TYPE_SLIDESHOW
);
int
i
;
if
(
winwid
)
{
if
(
signo
==
SIGUSR1
)
slideshow_change_image
(
winwid
,
SLIDE_NEXT
);
else
if
(
signo
==
SIGUSR2
)
slideshow_change_image
(
winwid
,
SLIDE_PREV
);
}
else
if
(
opt
.
multiwindow
)
{
puts
(
"yo"
);
for
(
i
=
window_num
-
1
;
i
>=
0
;
i
--
)
feh_reload_image
(
windows
[
i
],
0
,
0
);
}
return
;
...
...
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