summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README.md5
-rw-r--r--sxiv.115
-rw-r--r--window.c7
4 files changed, 5 insertions, 24 deletions
diff --git a/Makefile b/Makefile
index 911849c..bb4acbb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20120514
+VERSION = git-20120807
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
diff --git a/README.md b/README.md
index 88ee544..22bf2a6 100644
--- a/README.md
+++ b/README.md
@@ -127,11 +127,6 @@ The following additional key commands are available in *image mode*:
<,> Rotate image (counter-)clockwise by 90 degrees
\,| Flip image horizontally/vertically
- s Toggle slideshow
- Ctrl-'-' Decrease slideshow delay
- Ctrl-'+' Increase slideshow delay
- Ctrl-'=' Reset slideshow delay, or set it to [count] seconds
-
a Toggle anti-aliasing
W Resize window to fit image
diff --git a/sxiv.1 b/sxiv.1
index c63068d..f4b104a 100644
--- a/sxiv.1
+++ b/sxiv.1
@@ -262,21 +262,6 @@ Flip image horizontally.
.TP
.B |
Flip image vertically.
-.SS Slideshow
-.TP
-.B s
-Toggle slideshow.
-.TP
-.B Ctrl\-'\-'
-Decrease slideshow delay.
-.TP
-.B Ctrl-'+'
-Increase slideshow delay.
-.TP
-.B Ctrl-'='
-Reset slideshow delay to default value, or set it to
-.I count
-seconds.
.SS Miscellaneous
.TP
.B a
diff --git a/window.c b/window.c
index 11499cc..0d86925 100644
--- a/window.c
+++ b/window.c
@@ -128,6 +128,8 @@ void win_init(win_t *win) {
warn("no locale support");
win_init_font(e->dpy, BAR_FONT);
+
+ wm_delete_win = XInternAtom(e->dpy, "WM_DELETE_WINDOW", False);
}
void win_set_sizehints(win_t *win) {
@@ -209,6 +211,8 @@ void win_open(win_t *win) {
classhint.res_class = "Sxiv";
XSetClassHint(e->dpy, win->xwin, &classhint);
+ XSetWMProtocols(e->dpy, win->xwin, &wm_delete_win, 1);
+
if (!options->hide_bar) {
win->barh = font.ascent + font.descent + 2 * V_TEXT_PAD;
win->h -= win->barh;
@@ -220,9 +224,6 @@ void win_open(win_t *win) {
XMapWindow(e->dpy, win->xwin);
XFlush(e->dpy);
- wm_delete_win = XInternAtom(e->dpy, "WM_DELETE_WINDOW", False);
- XSetWMProtocols(e->dpy, win->xwin, &wm_delete_win, 1);
-
if (options->fullscreen)
win_toggle_fullscreen(win);
}