diff options
author | 2005-07-25 22:06:38 +0000 | |
---|---|---|
committer | 2005-07-25 22:06:38 +0000 | |
commit | d9fc2bf1a367c90e3999d288916c0e641301bfbd (patch) | |
tree | 534fbc1331b876c8c37c668e5884359830c0c757 /x11-misc/xsnap/files | |
parent | Fixed compile problems with enabled ekg2, thanks Marcin Kryczek <aye@gentoo.p... (diff) | |
download | historical-d9fc2bf1a367c90e3999d288916c0e641301bfbd.tar.gz historical-d9fc2bf1a367c90e3999d288916c0e641301bfbd.tar.bz2 historical-d9fc2bf1a367c90e3999d288916c0e641301bfbd.zip |
#99861: fixed -hide feature that should really be fixed upstream
Diffstat (limited to 'x11-misc/xsnap/files')
-rw-r--r-- | x11-misc/xsnap/files/xsnap-this-should-be-fixed-updstream.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/x11-misc/xsnap/files/xsnap-this-should-be-fixed-updstream.patch b/x11-misc/xsnap/files/xsnap-this-should-be-fixed-updstream.patch new file mode 100644 index 000000000000..7695cf958ea9 --- /dev/null +++ b/x11-misc/xsnap/files/xsnap-this-should-be-fixed-updstream.patch @@ -0,0 +1,55 @@ +diff -Naur xsnap-1.4.3/xsnap.c xsnap-1.4.3_patched/xsnap.c +--- xsnap-1.4.3/xsnap.c 2004-09-30 07:59:15.000000000 +0100 ++++ xsnap-1.4.3_patched/xsnap.c 2005-07-22 03:38:23.000000000 +0100 +@@ -558,7 +558,7 @@ + + for (i = 1; i < argc; i++) + { +- if (strncmp(argv[i], "-h", 2) == 0) ++ if (strcmp(argv[i], "-h") == 0) + { + usage(); + continue; +@@ -1920,27 +1920,28 @@ + if (display_in_window) { + XMapRaised(display, snapshot); + XFlush (display); +- } ++ + +- if (!*win_name0) +- strcpy(win_name0, "xsnap"); ++ if (!*win_name0) ++ strcpy(win_name0, "xsnap"); + +- sprintf(win_name, "%s %d x %d", ++ sprintf(win_name, "%s %d x %d", + win_name0, width_return, height_return); +- XStoreName(display, snapshot, win_name); +- ++ XStoreName(display, snapshot, win_name); ++ } + save_file: + if (save_in_file) { + save_image_file(display, screen, window_to_snap, + snap_pixmap, reg_width, reg_height, reg_depth); +- if (!root_name) +- strcpy(output_name, "(stdout)"); +- sprintf(win_name, "%s %d x %d -> %s", +- win_name0, width_return, height_return, +- output_name); +- XStoreName(display, snapshot, win_name); +- draw_dialog(display, dialog_window, copy_gc, +- 50, 96+30*i0); ++ ++ if (display_in_window) { ++ if (!root_name) ++ strcpy(output_name, "(stdout)"); ++ ++ sprintf(win_name, "%s %d x %d -> %s", win_name0, width_return, height_return, output_name); ++ XStoreName(display, snapshot, win_name); ++ draw_dialog(display, dialog_window, copy_gc, 50, 96+30*i0); ++ } + } + + if (!display_in_window) |