1. Disconnect the negative battery cable.
2. Remove the front door trim or rear door trim.
3. Remove the screws, then the power window switch.

4. Install in the reverse order of removal.
Door glass position change procedure
Power window main switch inspectionMazda 6 Service Manual: Rear window glass installation
Caution
To prevent the sealant from cracking or the glass from being
pushed out by air pressure if a door is closed, open all of the windows and
leave them open until the sealant has hardened.
1. Cut away the old sealant using a razor so that 1-2 mm {0.04-0.07 in}
thickness of sealant ...
Mazda 6 Service Manual: Add-On Non-Genuine Parts and Accessories
Non-genuine parts and accessories for Mazda vehicles can be found in stores.
These may fit your vehicle, but they are not approved by Mazda for use with Mazda
vehicles. When you install non-genuine parts or accessories, they could affect your
vehicle's performance or safety systems; the Mazda w ...