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:
committed by
Carlos R. Mafra
parent
528d97b597
commit
8352c9ef60
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user