mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
New option to raise a client via the mouse (unbound by default);
opposing action, lower, already exists and bound. Both keyboard mappings already exist. 'no opinion either way' oga@
This commit is contained in:
parent
34ba6cdbcc
commit
8f1c583361
1
calmwm.h
1
calmwm.h
@ -405,6 +405,7 @@ void mousefunc_window_grouptoggle(struct client_ctx *,
|
|||||||
void mousefunc_window_hide(struct client_ctx *, void *);
|
void mousefunc_window_hide(struct client_ctx *, void *);
|
||||||
void mousefunc_window_lower(struct client_ctx *, void *);
|
void mousefunc_window_lower(struct client_ctx *, void *);
|
||||||
void mousefunc_window_move(struct client_ctx *, void *);
|
void mousefunc_window_move(struct client_ctx *, void *);
|
||||||
|
void mousefunc_window_raise(struct client_ctx *, void *);
|
||||||
void mousefunc_window_resize(struct client_ctx *, void *);
|
void mousefunc_window_resize(struct client_ctx *, void *);
|
||||||
|
|
||||||
struct menu *menu_filter(struct screen_ctx *, struct menu_q *,
|
struct menu *menu_filter(struct screen_ctx *, struct menu_q *,
|
||||||
|
1
conf.c
1
conf.c
@ -554,6 +554,7 @@ static struct {
|
|||||||
{ "window_grouptoggle", mousefunc_window_grouptoggle,
|
{ "window_grouptoggle", mousefunc_window_grouptoggle,
|
||||||
MOUSEBIND_CTX_WIN },
|
MOUSEBIND_CTX_WIN },
|
||||||
{ "window_lower", mousefunc_window_lower, MOUSEBIND_CTX_WIN },
|
{ "window_lower", mousefunc_window_lower, MOUSEBIND_CTX_WIN },
|
||||||
|
{ "window_raise", mousefunc_window_raise, MOUSEBIND_CTX_WIN },
|
||||||
{ "window_hide", mousefunc_window_hide, MOUSEBIND_CTX_WIN },
|
{ "window_hide", mousefunc_window_hide, MOUSEBIND_CTX_WIN },
|
||||||
{ "menu_group", mousefunc_menu_group, MOUSEBIND_CTX_ROOT },
|
{ "menu_group", mousefunc_menu_group, MOUSEBIND_CTX_ROOT },
|
||||||
{ "menu_unhide", mousefunc_menu_unhide, MOUSEBIND_CTX_ROOT },
|
{ "menu_unhide", mousefunc_menu_unhide, MOUSEBIND_CTX_ROOT },
|
||||||
|
4
cwmrc.5
4
cwmrc.5
@ -14,7 +14,7 @@
|
|||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: May 7 2011 $
|
.Dd $Mdocdate: June 24 2011 $
|
||||||
.Dt CWMRC 5
|
.Dt CWMRC 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -402,6 +402,8 @@ Move current window.
|
|||||||
Resize current window.
|
Resize current window.
|
||||||
.It window_lower
|
.It window_lower
|
||||||
Lower current window.
|
Lower current window.
|
||||||
|
.It window_raise
|
||||||
|
Raise current window.
|
||||||
.It window_hide
|
.It window_hide
|
||||||
Hide current window.
|
Hide current window.
|
||||||
.It window_grouptoggle
|
.It window_grouptoggle
|
||||||
|
@ -196,6 +196,12 @@ mousefunc_window_lower(struct client_ctx *cc, void *arg)
|
|||||||
client_lower(cc);
|
client_lower(cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
mousefunc_window_raise(struct client_ctx *cc, void *arg)
|
||||||
|
{
|
||||||
|
client_raise(cc);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
mousefunc_window_hide(struct client_ctx *cc, void *arg)
|
mousefunc_window_hide(struct client_ctx *cc, void *arg)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user