Resizing a window freezes the X server (XGrabServer)

Brandin Creech <[email protected]> Wed, 25 Jan 2006 01:10:42 -0800 (PST)
Newsgroups gmane.compw.window-managers.windowmaker.user
Message-ID <[email protected]>
Greetings, list.

During window-resize operation, Window Maker displayes a transparent outline
of the window frame while you are resizing. I've noticed that most window
managers, Window Maker included, will freeze the X server while this type of
transparent window frame is displayed. For example if I'm watching a movie
and start to resize its window, the movie freezes! That doesn't feel right
for a multitasking system--it actually makes me nervous about resizing
windows since it seems to affect all applications running on the X server. By
the way, I also have superfluous animations turned on, so the freezing also
happens during those (such as the minimize and hide animations).

The first question (which I have already answered to my satisfaction) was how
to disable this sort of freezing behaviour because it annoys me and appears
unsightly. The solution lies in the XGrabServer X function call, which is the
source of this behaviour. So, I went to the Window Maker source and commented
out all of the XGrabServer calls (and the XUngrabServer calls), and now,
Window Maker no longer freezes my movies or other animations (like the CPU
graphs, xterms that show compiler output flying by, etc).

My second question (on which I am seeking comment)--why in the world do
window managers (including Window Maker) do this grabbing of the X server
during (superfluous) animations? For example, can someone on the list
convince me to go back to the source and uncomment all the XGrabServer and
XUngrabserver calls? To be fair, I did notice that an animation happening in
a window can (sometimes) corrupt the superfluous animations and cause some
leftover screen artifacts (like a leftover black verticle line), but this
hardly happens in practice and to me it seems a small price to pay to avoid
freezing all other window output.

Thanks.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
INFO: https://windowmaker.org/lists/listinfo/wm-user
ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
FAQ: http://windowmaker.org/faq.html