projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7a469d
)
Remove unused variable dist
author
Mikael Magnusson
<mikachu@gmail.com>
Fri, 19 Feb 2010 21:41:27 +0000
(22:41 +0100)
committer
Mikael Magnusson
<mikachu@gmail.com>
Fri, 19 Feb 2010 21:41:27 +0000
(22:41 +0100)
openbox/moveresize.c
patch
|
blob
|
history
diff --git
a/openbox/moveresize.c
b/openbox/moveresize.c
index
fd52d89
..
39ae5b7
100644
(file)
--- a/
openbox/moveresize.c
+++ b/
openbox/moveresize.c
@@
-655,7
+655,7
@@
static void move_with_keys(gint keycode, gint state)
static void resize_with_keys(gint keycode, gint state)
{
gint dw = 0, dh = 0, pdx = 0, pdy = 0, opx, opy, px, py;
static void resize_with_keys(gint keycode, gint state)
{
gint dw = 0, dh = 0, pdx = 0, pdy = 0, opx, opy, px, py;
- gint
dist = 0,
resist = 0;
+ gint resist = 0;
ObDirection dir;
/* pick the edge if it needs to move */
ObDirection dir;
/* pick the edge if it needs to move */
@@
-745,27
+745,27
@@
static void resize_with_keys(gint keycode, gint state)
if (key_resize_edge == OB_DIRECTION_WEST) {
if (dir == OB_DIRECTION_WEST)
if (key_resize_edge == OB_DIRECTION_WEST) {
if (dir == OB_DIRECTION_WEST)
- dw =
(dist = distw)
;
+ dw =
distw
;
else
else
- dw = -
(dist = distw)
;
+ dw = -
distw
;
}
else if (key_resize_edge == OB_DIRECTION_EAST) {
if (dir == OB_DIRECTION_EAST)
}
else if (key_resize_edge == OB_DIRECTION_EAST) {
if (dir == OB_DIRECTION_EAST)
- dw =
(dist = distw)
;
+ dw =
distw
;
else
else
- dw = -
(dist = distw)
;
+ dw = -
distw
;
}
else if (key_resize_edge == OB_DIRECTION_NORTH) {
if (dir == OB_DIRECTION_NORTH)
}
else if (key_resize_edge == OB_DIRECTION_NORTH) {
if (dir == OB_DIRECTION_NORTH)
- dh =
(dist = disth)
;
+ dh =
disth
;
else
else
- dh = -
(dist = disth)
;
+ dh = -
disth
;
}
else /*if (key_resize_edge == OB_DIRECTION_SOUTH)*/ {
if (dir == OB_DIRECTION_SOUTH)
}
else /*if (key_resize_edge == OB_DIRECTION_SOUTH)*/ {
if (dir == OB_DIRECTION_SOUTH)
- dh =
(dist = disth)
;
+ dh =
disth
;
else
else
- dh = -
(dist = disth)
;
+ dh = -
disth
;
}
}
}
}