mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
fix flicker
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user