Re: [dwm] patch: fix screen flicker with monocle

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Sat, 6 Sep 2008 09:25:05 +0100

2008/9/3 Donald Chai <donald.chai_AT_gmail.com>:
>> 2008/9/2 Donald Chai <donald.chai_AT_gmail.com>:
>>>
>>> The current arrange() procedure hides and shows windows in the order
>>> specified by "clients". This causes a lot of flicker and unnecessary
>>> screen
>>> redraws when there are many overlapping windows whose stacking order is
>>> different from "clients", i.e. when using monocle or floating layouts.
>>>
>>> This patch fixes that behavior.
>>
>> I like your recursive solution and consider it in a slightly modified way.
>>
>
> I'm sure there might be other problems I created...I don't understand the
> X11 event model at all.

Yes you did. It is important to showhide() before focus and restack
handling. I also slightly changed your initial showhide() version. See
hg tip for reference.

> For example, if my pointer is located over window A, and I use the keyboard
> to switch between windows B and C, window A briefly gets focus.

Yes, this was because you performed showhide() after restack(). At the
end of restack all enternotify's are flushed.

Kind regards,
--Anselm
Received on Sat Sep 06 2008 - 08:25:05 UTC

This archive was generated by hypermail 2.2.0 : Sat Sep 06 2008 - 08:36:04 UTC