Conf: Add option move_transparent in misc {}.
This commit is contained in:
@@ -129,6 +129,8 @@ conf_misc_section(cfg_t *cfg_m)
|
|||||||
conf.raisefocus = cfg_getbool(cfg_m, "raisefocus");
|
conf.raisefocus = cfg_getbool(cfg_m, "raisefocus");
|
||||||
conf.raiseswitch = cfg_getbool(cfg_m, "raiseswitch");
|
conf.raiseswitch = cfg_getbool(cfg_m, "raiseswitch");
|
||||||
conf.resize_transparent = cfg_getbool(cfg_m, "resize_transparent");
|
conf.resize_transparent = cfg_getbool(cfg_m, "resize_transparent");
|
||||||
|
conf.move_transparent = cfg_getbool(cfg_m, "move_transparent");
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ cfg_opt_t misc_opts[] =
|
|||||||
CFG_BOOL("raisefocus", cfg_false, CFGF_NONE),
|
CFG_BOOL("raisefocus", cfg_false, CFGF_NONE),
|
||||||
CFG_BOOL("raiseswitch", cfg_true, CFGF_NONE),
|
CFG_BOOL("raiseswitch", cfg_true, CFGF_NONE),
|
||||||
CFG_BOOL("resize_transparent", cfg_false, CFGF_NONE),
|
CFG_BOOL("resize_transparent", cfg_false, CFGF_NONE),
|
||||||
|
CFG_BOOL("move_transparent", cfg_false, CFGF_NONE),
|
||||||
CFG_END()
|
CFG_END()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ mouse_move(Client *c)
|
|||||||
geo.x = (ocx + (ev.xmotion.x - mx));
|
geo.x = (ocx + (ev.xmotion.x - mx));
|
||||||
geo.y = (ocy + (ev.xmotion.y - my));
|
geo.y = (ocy + (ev.xmotion.y - my));
|
||||||
|
|
||||||
client_moveresize(c, geo, False);
|
if(!conf.move_transparent)
|
||||||
|
client_moveresize(c, geo, False);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(ev.type == MapRequest
|
else if(ev.type == MapRequest
|
||||||
@@ -109,6 +110,9 @@ mouse_move(Client *c)
|
|||||||
}
|
}
|
||||||
while(ev.type != ButtonRelease);
|
while(ev.type != ButtonRelease);
|
||||||
|
|
||||||
|
if(!c->tile)
|
||||||
|
client_moveresize(c, geo, False);
|
||||||
|
|
||||||
client_update_attributes(c);
|
client_update_attributes(c);
|
||||||
XUngrabPointer(dpy, CurrentTime);
|
XUngrabPointer(dpy, CurrentTime);
|
||||||
|
|
||||||
|
|||||||
@@ -273,6 +273,7 @@ typedef struct
|
|||||||
Bool raisefocus;
|
Bool raisefocus;
|
||||||
Bool raiseswitch;
|
Bool raiseswitch;
|
||||||
Bool resize_transparent;
|
Bool resize_transparent;
|
||||||
|
Bool move_transparent;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user