2008/9/3 Donald Chai <[EMAIL PROTECTED]>: >> 2008/9/2 Donald Chai <[EMAIL PROTECTED]>: >>> >>> 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
