The patch I provided earlier fixed the described problem, but did also create a new problem leading to off-screen windows when two configure notifies were received (first notify was for the actual size change, while the second one was not), and the second configure notify then lead to a change of mPrevSize, while actions for the first configure notify where still being processed.
The new attached patch compiz_fix_monitor_reconfiguration_2.patch fixes this. The new patch introduces mPrevSize2, which holds the actual value that is used to process the configure notify. This value only changes, when a configure notify is received that actually notifies about a change of the desktop size.
The patch I provided earlier fixed the described problem, but did also create a new problem leading to off-screen windows when two configure notifies were received (first notify was for the actual size change, while the second one was not), and the second configure notify then lead to a change of mPrevSize, while actions for the first configure notify where still being processed.
The new attached patch compiz_ fix_monitor_ reconfiguration _2.patch fixes this. The new patch introduces mPrevSize2, which holds the actual value that is used to process the configure notify. This value only changes, when a configure notify is received that actually notifies about a change of the desktop size.