[vlc-devel] [PATCH] qt: prevent window jumps on resize (X11)

Romain Vimont rom1v at videolabs.io
Mon Apr 30 21:52:12 CEST 2018


Le 30/04/2018 à 19:42, Rémi Denis-Courmont a écrit :
> No. MoveResizeWindow request is relative to the parent window. For 
> top-level windows, that is the root window, which encompasses the whole 
> X11 "screen", or in more modern words, the virtual desktop.
> 
> The output is never involved in window coordinates on X.

Oh you're right, both are expressed in "virtual desktop" coordinates.

I now get the problem: the top screen have dpr = 1, while the bottom 
screen have dpr = 2. So only the part below the first screen (here, 1440 
pixels) should be multiplied by 2.

> If you want to resize a window in place, you must use XResizeWindow 
> anyway, so the distinction is irrelevant.

Yes, the patch content is the same. I will send a v2 with a different 
commit message.
> -- 
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser 
> ma brièveté.
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list