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

fix flicker

This commit is contained in:
kojima
2004-10-23 01:56:24 +00:00
parent c3cff33f99
commit 11b464a002
2 changed files with 2 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
WWindow *tmp; WWindow *tmp;
if (swpanel) { if (swpanel) {
tmp = wSwitchPanelHandleEvent(swpanel, &ev); tmp = wSwitchPanelHandleEvent(swpanel, &ev);
if (tmp && tmp != newFocused) { if (tmp) {
newFocused = tmp; newFocused = tmp;
wWindowFocus(newFocused, oldFocused); wWindowFocus(newFocused, oldFocused);
oldFocused = newFocused; oldFocused = newFocused;

View File

@@ -479,7 +479,7 @@ WWindow *wSwitchPanelHandleEvent(WSwitchPanel *panel, XEvent *event)
} }
} }
if (focus >= 0) { if (focus >= 0 && panel->current != focus) {
WWindow *wwin; WWindow *wwin;
changeImage(panel, panel->current, 0); changeImage(panel, panel->current, 0);