Fix race condition during workspace changes
commit5979162878884386c7c0e147b02222ea9a1c6871
authorAlexey I. Froloff <raorn@altlinux.org>
Sun, 29 Mar 2009 00:14:36 +0000 (29 04:14 +0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 15 Sep 2009 18:14:55 +0000 (15 20:14 +0200)
tree28df51b0edb0608ba44f4bfcccc1fd6b7f2f623c
parent306165775ef2b482bdfa249ce4c20a4fddcc5f48
Fix race condition during workspace changes

When changing workspaces, after focusing new window, wmaker handles all
pending events.  If it receives another change-workspace combination,
you may end up with a workspace without any focused window.

Ctrf-F1 and Ctrl-F2 used to switch to 1st and 2nd workspaces.
Hold Ctrl and press F1 and F2 almost at the same time.

This patch ignores all change-workspace commands while workspace
change is in progress.

See also https://bugzilla.altlinux.org/show_bug.cgi?id=7230

[crmafra: Thanks to Alexey I. Froloff for the above explanation]
src/workspace.c