mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
fix flicker
This commit is contained in:
@@ -207,7 +207,7 @@ StartWindozeCycle(WWindow *wwin, XEvent *event, Bool next)
|
||||
WWindow *tmp;
|
||||
if (swpanel) {
|
||||
tmp = wSwitchPanelHandleEvent(swpanel, &ev);
|
||||
if (tmp && tmp != newFocused) {
|
||||
if (tmp) {
|
||||
newFocused = tmp;
|
||||
wWindowFocus(newFocused, oldFocused);
|
||||
oldFocused = newFocused;
|
||||
|
||||
@@ -479,7 +479,7 @@ WWindow *wSwitchPanelHandleEvent(WSwitchPanel *panel, XEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
if (focus >= 0) {
|
||||
if (focus >= 0 && panel->current != focus) {
|
||||
WWindow *wwin;
|
||||
|
||||
changeImage(panel, panel->current, 0);
|
||||
|
||||
Reference in New Issue
Block a user