[PATCH 2/2] Allow using numpad Enter key in dialogs for confirmation
Signed-off-by: Amadeusz Sławiński am...@asmblr.net --- WINGs/wtextfield.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index adf90c4..285374a 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -1000,6 +1000,9 @@ static void handleTextFieldKeyPress(TextField * tPtr, XEvent * event) } break; +#ifdef XK_KP_Enter + case XK_KP_Enter: +#endif case XK_Return: if (!modified) { data = (void *)WMReturnTextMovement; -- 2.4.6 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.
[PATCH 1/2] Allow using keypad Enter to commit move/resize
Signed-off-by: Amadeusz Sławiński am...@asmblr.net --- src/moveres.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/moveres.c b/src/moveres.c index b271f32..ec0720f 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -1440,6 +1440,9 @@ int wKeyboardMoveResizeWindow(WWindow * wwin) keysym = XLookupKeysym(event.xkey, 0); switch (keysym) { case XK_Return: +#ifdef XK_KP_Enter + case XK_KP_Enter: +#endif done = 2; break; case XK_Escape: -- 2.4.6 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.
[repo.or.cz] wmaker-crm.git branch next updated: wmaker-0.95.6-333-g49e94f9
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 49e94f97479fbd686f3987571434b2ea57e30e43 (commit) via 16e92d89aa5eba6cd7f62158aa614d63d0150576 (commit) from fc437783f990c03519821ccfb655cd637db003dc (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/49e94f97479fbd686f3987571434b2ea57e30e43 commit 49e94f97479fbd686f3987571434b2ea57e30e43 Author: Amadeusz Sławiński am...@asmblr.net Date: Mon Jul 27 18:19:52 2015 +0200 Allow using numpad Enter key in dialogs for confirmation Signed-off-by: Amadeusz Sławiński am...@asmblr.net diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index f72102d..bac16bd 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -1000,6 +1000,9 @@ static void handleTextFieldKeyPress(TextField * tPtr, XEvent * event) } break; +#ifdef XK_KP_Enter + case XK_KP_Enter: +#endif case XK_Return: if (!modified) { data = (void *)WMReturnTextMovement; http://repo.or.cz/w/wmaker-crm.git/commit/16e92d89aa5eba6cd7f62158aa614d63d0150576 commit 16e92d89aa5eba6cd7f62158aa614d63d0150576 Author: Amadeusz Sławiński am...@asmblr.net Date: Mon Jul 27 18:19:51 2015 +0200 Allow using keypad Enter to commit move/resize Signed-off-by: Amadeusz Sławiński am...@asmblr.net diff --git a/src/moveres.c b/src/moveres.c index e8883c8..5472ceb 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -1445,6 +1445,9 @@ int wKeyboardMoveResizeWindow(WWindow * wwin) keysym = XLookupKeysym(event.xkey, 0); switch (keysym) { case XK_Return: +#ifdef XK_KP_Enter + case XK_KP_Enter: +#endif done = 2; break; case XK_Escape: --- Summary of changes: WINGs/wtextfield.c | 3 +++ src/moveres.c | 3 +++ 2 files changed, 6 insertions(+) repo.or.cz automatic notification. Contact project admin crma...@gmail.com if you want to unsubscribe, or site admin ad...@repo.or.cz if you receive no reply. -- wmaker-crm.git (The Window Maker window manager) -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.
[PATCH] make it possible to rename workspaces from Workspace Menu
useful when there is no clip around renameWSCommand is based on renameCallback from dock.c Signed-off-by: Amadeusz Sławiński am...@asmblr.net --- src/workspace.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/workspace.c b/src/workspace.c index 380ffec..e83393c 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -50,12 +50,13 @@ #include xinerama.h #include event.h #include wsmap.h +#include dialog.h #define MC_NEW 0 #define MC_DESTROY_LAST 1 #define MC_LAST_USED2 /* index of the first workspace menu entry */ -#define MC_WORKSPACE1 3 +#define MC_WORKSPACE1 4 #define WORKSPACE_NAME_DISPLAY_PADDING 32 @@ -679,6 +680,24 @@ static void newWSCommand(WMenu *menu, WMenuEntry *foo) wWorkspaceChange(menu-frame-screen_ptr, ws); } +static void renameWSCommand(WMenu *menu, WMenuEntry *foo) +{ + char buffer[128]; + int wspace; + char *name; + + (void) foo; + + wspace = menu-frame-screen_ptr-current_workspace; + + name = wstrdup(menu-frame-screen_ptr-workspaces[wspace]-name); + + snprintf(buffer, sizeof(buffer), _(Type the name for workspace %i:), wspace + 1); + if (wInputDialog(menu-frame-screen_ptr, _(Rename Workspace), buffer, name)) + wWorkspaceRename(menu-frame-screen_ptr, wspace, name); + + wfree(name); +} void wWorkspaceRename(WScreen *scr, int workspace, const char *name) { char buf[MAX_WORKSPACENAME_WIDTH + 1]; @@ -748,6 +767,7 @@ WMenu *wWorkspaceMenuMake(WScreen * scr, Bool titled) wMenuAddCallback(wsmenu, _(New), newWSCommand, NULL); wMenuAddCallback(wsmenu, _(Destroy Last), deleteWSCommand, NULL); + wMenuAddCallback(wsmenu, _(Rename Workspace), renameWSCommand, NULL); entry = wMenuAddCallback(wsmenu, _(Last Used), lastWSCommand, NULL); entry-rtext = GetShortcutKey(wKeyBindings[WKBD_LASTWORKSPACE]); -- 2.4.6 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.
Re: [PATCH] make it possible to rename workspaces from Workspace Menu
On Mon, 27 Jul 2015, Amadeusz Sławiński wrote: useful when there is no clip around It's already possible to do this by Ctrl+clicking the menu item. (You can even rename other than the current workspace with that.) Do we need another menu item for it? Regards, BALATON Zoltan