소스 검색

Bug fix: handle negative offsets in -g arg correctly

master
Bert 14 년 전
부모
커밋
8fb3110ebb
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      Makefile
  2. +4
    -0
      window.c

+ 1
- 1
Makefile 파일 보기

@@ -1,6 +1,6 @@
all: sxiv

VERSION=git-20110131
VERSION=git-20110201

CC?=gcc
PREFIX?=/usr/local


+ 4
- 0
window.c 파일 보기

@@ -76,8 +76,12 @@ void win_open(win_t *win) {
win->h = e->scrh;
if (!(gmask & XValue))
win->x = (e->scrw - win->w) / 2;
else if (gmask & XNegative)
win->x += e->scrw - win->w;
if (!(gmask & YValue))
win->y = (e->scrh - win->h) / 2;
else if (gmask & YNegative)
win->y += e->scrh - win->h;

win->xwin = XCreateWindow(e->dpy, RootWindow(e->dpy, e->scr),
win->x, win->y, win->w, win->h, 0,


불러오는 중...
취소
저장