1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

Allow relaunch with shortcut key.

Use the WindowRelaunchKey shortcut to examine the WM_COMMAND property of
the active application's main window and launch a new instance of the
application using the retrieved command line.
This commit is contained in:
Iain Patterson
2012-03-30 17:35:57 +01:00
committed by Carlos R. Mafra
parent 528d97b597
commit 8352c9ef60
6 changed files with 77 additions and 0 deletions

View File

@@ -1651,6 +1651,12 @@ static void handleKeyPress(XEvent * event)
break;
case WKBD_RELAUNCH:
if (ISMAPPED(wwin) && ISFOCUSED(wwin))
(void) RelaunchWindow(wwin);
break;
case WKBD_SWITCH_SCREEN:
if (wScreenCount > 1) {
WScreen *scr2;