commit 70e39234df46dd6066bbc5c9b060a448e8509474
parent 02455f8f2c282c809f8bea1a00a00b8cda11de57
Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 22 Nov 2013 15:18:35 +0100
Removing some whitespaces.
Diffstat:
xzoom.c | | | 28 | ++++++++++++++-------------- |
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/xzoom.c b/xzoom.c
@@ -26,7 +26,7 @@ Markus F.X.J. Oberhumer Version 0.4, Feb. 18 1998
optimized scaling routines
use memcpy() instead of memmove() ;-)
some other minor changes/fixes
-tony mancill 2002/02/13 <tmancill@debian.org>
+tony mancill 2002/02/13 <tmancill@debian.org>
hacked in support for WM_DELETE_WINDOW
*/
@@ -480,18 +480,18 @@ main(int argc, char **argv) {
if(!strcmp(argv[0], "-d") ||
!strcmp(argv[0], "-display")) {
- ++argv; --argc;
+ ++argv; --argc;
if(argc < 1)
Usage();
- dpyname = argv[0];
+ dpyname = argv[0];
continue;
}
if(!strcmp(argv[0], "-delay")) {
- ++argv; --argc;
+ ++argv; --argc;
if(argc < 1)
Usage();
@@ -619,14 +619,14 @@ main(int argc, char **argv) {
(unsigned char *)progname, strlen(progname));
*/
-
- /*** 20020213
+
+ /*** 20020213
code added by <tmancill@debian.org> to handle
- window manager "close" event
+ window manager "close" event
***/
wm_delete_window = XInternAtom (dpy, "WM_DELETE_WINDOW", False);
- wm_protocols = XInternAtom(dpy, "WM_PROTOCOLS", False);
- status = XSetWMProtocols(dpy, win, &wm_delete_window, 1);
+ wm_protocols = XInternAtom(dpy, "WM_PROTOCOLS", False);
+ status = XSetWMProtocols(dpy, win, &wm_delete_window, 1);
set_title = True;
@@ -682,16 +682,16 @@ main(int argc, char **argv) {
(XWindowEvent(dpy, win, (long)-1, &event), 1):
XCheckWindowEvent(dpy, win, (long)-1, &event)) {
******/
-
+
while(XPending(dpy)) {
XNextEvent(dpy, &event);
switch(event.type) {
case ClientMessage:
- if ((event.xclient.message_type == wm_protocols) &&
+ if ((event.xclient.message_type == wm_protocols) &&
(event.xclient.data.l[0] == wm_delete_window)) {
- exit(0);
- }
- break;
+ exit(0);
+ }
+ break;
case ConfigureNotify:
if(event.xconfigure.width != width[DST] ||
event.xconfigure.height != height[DST]) {