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

fixed flickering when switching windows

This commit is contained in:
kojima
2004-10-21 00:59:52 +00:00
parent 3a7749b0fc
commit 6de693a24d
2 changed files with 9 additions and 23 deletions

View File

@@ -227,11 +227,11 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
}
if (newFocused) {
wRaiseFrame(newFocused->frame->core);
CommitStacking(scr);
if (!newFocused->flags.mapped)
wMakeWindowVisible(newFocused);
wSetFocusTo(scr, newFocused);
wRaiseFrame(newFocused->frame->core);
}
if (swpanel)

View File

@@ -50,16 +50,15 @@
#define MC_MINIATURIZE 1
#define MC_SHADE 2
#define MC_HIDE 3
#define MC_HIDE_OTHERS 4
#define MC_MOVERESIZE 5
#define MC_SELECT 6
#define MC_DUMMY_MOVETO 7
#define MC_PROPERTIES 8
#define MC_OPTIONS 9
#define MC_SHORTCUT 9
#define MC_MOVERESIZE 4
#define MC_SELECT 5
#define MC_DUMMY_MOVETO 6
#define MC_PROPERTIES 7
#define MC_OPTIONS 8
#define MC_SHORTCUT 8
#define MC_CLOSE 10
#define MC_KILL 11
#define MC_CLOSE 9
#define MC_KILL 10
#define WO_KEEP_ON_TOP 0
@@ -177,11 +176,6 @@ execMenuCommand(WMenu *menu, WMenuEntry *entry)
wapp = wApplicationOf(wwin->main_window);
wHideApplication(wapp);
break;
case MC_HIDE_OTHERS:
wHideOtherApplications(wwin);
break;
}
}
@@ -472,14 +466,6 @@ createWindowMenu(WScreen *scr)
entry->rtext = wstrdup(tmp);
}
entry = wMenuAddCallback(menu, _("Hide Others"), execMenuCommand, NULL);
if (wKeyBindings[WKBD_HIDE_OTHERS].keycode!=0) {
kcode = wKeyBindings[WKBD_HIDE_OTHERS].keycode;
if (kcode && (tmp = XKeysymToString(XKeycodeToKeysym(dpy, kcode, 0))))
entry->rtext = wstrdup(tmp);
}
entry = wMenuAddCallback(menu, _("Resize/Move"), execMenuCommand, NULL);
if (wKeyBindings[WKBD_MOVERESIZE].keycode!=0) {
kcode = wKeyBindings[WKBD_MOVERESIZE].keycode;