A window or door including a window sash or door leaf arranged movable in a frame between an open position and a closed position and a locking system including a locking rod arranged displaceably in its longitudinal direction in the window sash or door leaf, wherein the locking rod is displaceable by rotation of a pivotal operating handle, wherein a number of locking pawls are movable between a locked position and an unlocked position upon displacement of the locking rod, so that, when the window sash or door leaf is in its closed position and the operating handle is in a locked position, the locking pawls are in their locked position and engage corresponding respective striking plates arranged on the frame, and when the operating handle is in an unlocked position, the locking pawls are in their unlocked position out of engagement with said striking plates, wherein, when the operating handle and the locking pawls are in their unlocked positions, the locking system has a static friction which has to be overcome in order to bring the operating handle and the locking pawls away from their unlocked positions, wherein the locking system includes at least one spring element arranged to be loaded to a maximum load when the operating handle and the locking pawls are in their unlocked positions and adapted to unload at least to a minimum load when the operating handle and the locking pawls are brought to their locked positions, wherein the at least one spring element is arranged to unload gradually from the beginning to the end of the rotation of the operating handle from the unlocked to the locked position, wherein the spring load of the at least one spring element in the unlocked position of the operating handle and the locking pawls is lower than the spring load that would be necessary to overcome said static friction of the locking system in the unlocked position without a user operating the pivotal operating handle, wherein the at least one spring element has the form of a coiled spring, wherein a first end of the coiled spring is connected with the locking rod and a second end of the coiled spring is connected with a housing of the locking system, wherein the coiled spring is a compression spring, wherein the first end of the coiled spring abuts a displaceable bracket connected with the locking rod and the second end of the coiled spring abuts a part of the housing of the locking system, wherein the coiled spring is arranged in a longitudinal groove in the housing of the locking system, wherein the longitudinal groove has a first end wall and an opposed second end wall, wherein the second end of the coiled spring abuts the second end wall of the longitudinal groove, and wherein the first end of the coiled spring abuts a first end of the displaceable bracket, characterised in that the first end of the displaceable bracket has the form of a tab being arranged between the first end wall of the longitudinal groove and the first end of the coiled spring and being adapted to slide in the longitudinal direction of the longitudinal groove, in that the displaceable bracket has a second end connected with the locking rod, in that an intermediate part of the displaceable bracket extends between the first end of the displaceable bracket and the second end of the displaceable bracket, in that the intermediate part of the displaceable bracket covers the coiled spring in the longitudinal groove, in that the second end of the displaceable bracket is connected to a slideable rod arranged in parallel to the locking rod and at a distance from the locking rod in a transverse direction of the locking rod, and in that the slideable rod is connected to the locking rod by means of a connecting piece extending in said transverse direction so that the locking rod with locking pawls and operating handle is arranged inside a sealing plane of the window sash, and the displaceable bracket with associated spring is arranged outside said sealing plane.