summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-10 11:53:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-10 11:54:37 +0200
commit346459a1bed5ca7d30a568746591c1849c04daf8 (patch)
treeb2fdbf2a9d0df2c44ebfe7a560b2900e488a6420
parent6f08fd4510dd426322af28b3bf982bb44f218465 (diff)
keyevents.c: Make toggle_aliasing actually affect the current window
-rw-r--r--ChangeLog2
-rw-r--r--src/keyevents.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bf53504..249e349 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,6 +27,8 @@ git HEAD
option is now always checked when these options are used
* Set _NET_WM_NAME and _NET_WM_ICON_NAME properties
<http://github.com/derf/feh/issues/44>
+ * The 'A' key (toggle_aliasing) now actually changes the current window,
+ and not just the default for new windows
Sat, 23 Apr 2011 22:00:27 +0200 Daniel Friesel <derf@finalrewind.org>
diff --git a/src/keyevents.c b/src/keyevents.c
index 381be50..9d5af5a 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -552,7 +552,8 @@ void feh_event_handle_keypress(XEvent * ev)
}
else if (feh_is_kp(&keys.toggle_aliasing, keysym, state)) {
opt.force_aliasing = !opt.force_aliasing;
- winwidget_rerender_all(0);
+ winwid->force_aliasing = !winwid->force_aliasing;
+ winwidget_render_image(winwid, 0, 0);
}
else if (feh_is_kp(&keys.toggle_filenames, keysym, state)) {
opt.draw_filename = !opt.draw_filename;