aboutsummaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-02-04 22:38:24 +0100
committerBert Münnich <ber.t@posteo.de>2014-02-04 22:38:24 +0100
commit524d9de877dcf0dc4212c12c3bd09db285dae17e (patch)
tree3a1bf61f7dbfe96afe80384f1deb3b8dd200ca05 /window.c
parenteb82519a80ab3d09fb3294d64a3526c678433d22 (diff)
downloadnsxiv-524d9de877dcf0dc4212c12c3bd09db285dae17e.tar.zst
Removed fit-win-to-img command
Diffstat (limited to 'window.c')
-rw-r--r--window.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/window.c b/window.c
index 8086a4c..b8d5cf5 100644
--- a/window.c
+++ b/window.c
@@ -374,39 +374,6 @@ void win_expose(win_t *win, XExposeEvent *e)
e->x, e->y, e->width, e->height, e->x, e->y);
}
-bool win_moveresize(win_t *win, int x, int y, unsigned int w, unsigned int h)
-{
- if (win == NULL || win->xwin == None)
- return false;
-
- /* caller knows nothing about the bar */
- h += win->bar.h;
-
- x = MAX(0, x);
- y = MAX(0, y);
- w = MIN(w, win->env.scrw - 2 * win->bw);
- h = MIN(h, win->env.scrh - 2 * win->bw);
-
- if (win->x == x && win->y == y && win->w == w && win->h + win->bar.h == h)
- return false;
-
- win->x = x;
- win->y = y;
- win->w = w;
- win->h = h - win->bar.h;
-
- win_update_sizehints(win);
-
- XMoveResizeWindow(win->env.dpy, win->xwin, x, y, w, h);
-
- if (win->pm != None) {
- XFreePixmap(win->env.dpy, win->pm);
- win->pm = None;
- }
-
- return true;
-}
-
void win_toggle_fullscreen(win_t *win)
{
XEvent ev;