This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  b9bf8c77a02ade7557ef0ab0ef0651ffa553007c (commit)
      from  4d27e9f09cffe691d2bf0340dce7c6f815d85ce7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/b9bf8c77a02ade7557ef0ab0ef0651ffa553007c

commit b9bf8c77a02ade7557ef0ab0ef0651ffa553007c
Author: Gaspar Chilingarov <[email protected]>
Date:   Mon Nov 10 15:28:51 2014 +0400

    wmaker: Support omnipresent setting toggle from keyboard

diff --git a/WPrefs.app/KeyboardShortcuts.c b/WPrefs.app/KeyboardShortcuts.c
index 5830f791..418b2397 100644
--- a/WPrefs.app/KeyboardShortcuts.c
+++ b/WPrefs.app/KeyboardShortcuts.c
@@ -89,6 +89,7 @@ static const struct {
        { "LBCMaximizeKey", N_("Maximize active window left bottom corner") },
        { "RBCMaximizeKey", N_("Maximize active window right bottom corner") },
        { "MaximusKey",     N_("Maximus: Tiled maximization ") },
+       { "OmnipresentKey", N_("Toggle window omnipresent status") },
        { "RaiseKey",       N_("Raise active window") },
        { "LowerKey",       N_("Lower active window") },
        { "RaiseLowerKey",  N_("Raise/Lower window under mouse pointer") },
diff --git a/src/defaults.c b/src/defaults.c
index 6ea935ea..cf344246 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -649,6 +649,8 @@ WDefaultEntry optionList[] = {
                NULL, getKeybind, setKeyGrab, NULL, NULL},
        {"MaximusKey", "None", (void*)WKBD_MAXIMUS,
                NULL, getKeybind, setKeyGrab, NULL, NULL},
+       {"OmnipresentKey", "None", (void *)WKBD_OMNIPRESENT,
+           NULL, getKeybind, setKeyGrab, NULL, NULL},
        {"RaiseKey", ""Meta+Up"", (void *)WKBD_RAISE,
            NULL, getKeybind, setKeyGrab, NULL, NULL},
        {"LowerKey", ""Meta+Down"", (void *)WKBD_LOWER,
diff --git a/src/event.c b/src/event.c
index 0d9b9c26..bc590fe5 100644
--- a/src/event.c
+++ b/src/event.c
@@ -1543,6 +1543,13 @@ static void handleKeyPress(XEvent * event)
                        handleMaximize(wwin, MAX_MAXIMUS | MAX_KEYBOARD);
                }
                break;
+       case WKBD_OMNIPRESENT:
+               if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
+                       CloseWindowMenu(scr);
+
+                       wWindowSetOmnipresent(wwin, !wwin->flags.omnipresent);
+               }
+               break;
        case WKBD_RAISE:
                if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
                        CloseWindowMenu(scr);
diff --git a/src/keybind.h b/src/keybind.h
index 11f02111..4aaadd47 100644
--- a/src/keybind.h
+++ b/src/keybind.h
@@ -63,6 +63,7 @@ enum {
        WKBD_RBCMAXIMIZE,
        WKBD_MAXIMUS,
        WKBD_SELECT,
+       WKBD_OMNIPRESENT,
        WKBD_RAISE,
        WKBD_LOWER,
        WKBD_RAISELOWER,

-----------------------------------------------------------------------

Summary of changes:
 WPrefs.app/KeyboardShortcuts.c |    1 +
 src/defaults.c                 |    2 ++
 src/event.c                    |    7 +++++++
 src/keybind.h                  |    1 +
 4 files changed, 11 insertions(+), 0 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


-- 
To unsubscribe, send mail to [email protected].

Reply via email to