mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Window shortcuts will apply to a group of selected windows, too.
This commit is contained in:
13
src/window.c
13
src/window.c
@@ -51,6 +51,7 @@
|
||||
#include "stacking.h"
|
||||
#include "defaults.h"
|
||||
#include "workspace.h"
|
||||
#include "list.h"
|
||||
|
||||
#ifdef MWM_HINTS
|
||||
# include "motif.h"
|
||||
@@ -208,9 +209,15 @@ wWindowDestroy(WWindow *wwin)
|
||||
wwin->flags.destroyed = 1;
|
||||
|
||||
for (i = 0; i < MAX_WINDOW_SHORTCUTS; i++) {
|
||||
if (wwin->screen_ptr->shortcutWindow[i] == wwin) {
|
||||
wwin->screen_ptr->shortcutWindow[i] = NULL;
|
||||
}
|
||||
wwin->screen_ptr->shortcutSelectedWindows[i] = list_remove_elem(wwin->screen_ptr->shortcutSelectedWindows[i], wwin);
|
||||
if (wwin->screen_ptr->shortcutWindow[i] == wwin) {
|
||||
if (wwin->screen_ptr->shortcutSelectedWindows[i]) {
|
||||
LinkedList *list = wwin->screen_ptr->shortcutSelectedWindows[i];
|
||||
wwin->screen_ptr->shortcutWindow[i] =
|
||||
list->head;
|
||||
}
|
||||
else wwin->screen_ptr->shortcutWindow[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (wwin->normal_hints)
|
||||
|
||||
Reference in New Issue
Block a user