]> git.sur5r.net Git - i3/i3/commit
scratchpad: fix moving scratchpad window
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 8 Aug 2012 14:22:03 +0000 (16:22 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 8 Aug 2012 16:45:40 +0000 (18:45 +0200)
commit6ba09444308ac4c8c55beaef416cbaafe7470fb0
treefa9cddd332ae9fe7f0a3d944dda677cbcbeab020
parent3cdc5c5369efb10cdd46498cf478e824fb1a870f
scratchpad: fix moving scratchpad window

From the source:

    When starting i3 initially (and after each change to the connected
    outputs), this function fixes the resolution of the __i3
    pseudo-output. When that resolution is not set to a function which
    shares a common divisor with every active output’s resolution,
    floating point calculation errors will lead to the scratchpad window
    moving when shown repeatedly.

fixes #632
include/scratchpad.h
src/handlers.c
src/main.c
src/scratchpad.c
src/tree.c
testcases/t/505-scratchpad-resolution.t [new file with mode: 0644]