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