mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 13:24:14 +01:00
fixed flickering when switching windows
This commit is contained in:
@@ -227,11 +227,11 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (newFocused) {
|
if (newFocused) {
|
||||||
|
wRaiseFrame(newFocused->frame->core);
|
||||||
CommitStacking(scr);
|
CommitStacking(scr);
|
||||||
if (!newFocused->flags.mapped)
|
if (!newFocused->flags.mapped)
|
||||||
wMakeWindowVisible(newFocused);
|
wMakeWindowVisible(newFocused);
|
||||||
wSetFocusTo(scr, newFocused);
|
wSetFocusTo(scr, newFocused);
|
||||||
wRaiseFrame(newFocused->frame->core);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (swpanel)
|
if (swpanel)
|
||||||
|
|||||||
@@ -50,16 +50,15 @@
|
|||||||
#define MC_MINIATURIZE 1
|
#define MC_MINIATURIZE 1
|
||||||
#define MC_SHADE 2
|
#define MC_SHADE 2
|
||||||
#define MC_HIDE 3
|
#define MC_HIDE 3
|
||||||
#define MC_HIDE_OTHERS 4
|
#define MC_MOVERESIZE 4
|
||||||
#define MC_MOVERESIZE 5
|
#define MC_SELECT 5
|
||||||
#define MC_SELECT 6
|
#define MC_DUMMY_MOVETO 6
|
||||||
#define MC_DUMMY_MOVETO 7
|
#define MC_PROPERTIES 7
|
||||||
#define MC_PROPERTIES 8
|
#define MC_OPTIONS 8
|
||||||
#define MC_OPTIONS 9
|
#define MC_SHORTCUT 8
|
||||||
#define MC_SHORTCUT 9
|
|
||||||
|
|
||||||
#define MC_CLOSE 10
|
#define MC_CLOSE 9
|
||||||
#define MC_KILL 11
|
#define MC_KILL 10
|
||||||
|
|
||||||
|
|
||||||
#define WO_KEEP_ON_TOP 0
|
#define WO_KEEP_ON_TOP 0
|
||||||
@@ -177,11 +176,6 @@ execMenuCommand(WMenu *menu, WMenuEntry *entry)
|
|||||||
wapp = wApplicationOf(wwin->main_window);
|
wapp = wApplicationOf(wwin->main_window);
|
||||||
wHideApplication(wapp);
|
wHideApplication(wapp);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MC_HIDE_OTHERS:
|
|
||||||
wHideOtherApplications(wwin);
|
|
||||||
break;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -472,14 +466,6 @@ createWindowMenu(WScreen *scr)
|
|||||||
entry->rtext = wstrdup(tmp);
|
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);
|
entry = wMenuAddCallback(menu, _("Resize/Move"), execMenuCommand, NULL);
|
||||||
if (wKeyBindings[WKBD_MOVERESIZE].keycode!=0) {
|
if (wKeyBindings[WKBD_MOVERESIZE].keycode!=0) {
|
||||||
kcode = wKeyBindings[WKBD_MOVERESIZE].keycode;
|
kcode = wKeyBindings[WKBD_MOVERESIZE].keycode;
|
||||||
|
|||||||
Reference in New Issue
Block a user