Bug 343450

Summary: kscreen isnt resizing the screen correctly
Product: [Plasma] KScreen Reporter: Paulo Dias <paulo.miguel.dias>
Component: libkscreenAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: grave CC: paulo.miguel.dias
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.1
Attachments: original size, output of xrandr --verbose --current
resized using kscreen, output of xrandr --verbose --current
garbled display,kscreen tried to change size to original size, output of xrandr --verbose --current
restored original size using xrandr -s 1920x1080, output of xrandr --verbose --current
xorg.0.log of the affected resizes

Description Paulo Dias 2015-01-28 11:59:40 UTC
kscreen doesnt resize the screen correctly.

If i resize the screen to, lets say, 1280x1024, kscreen does resize it correctly, BUT when going back to the original size (1920x1080), it resizes only to 1/4 lower left size, and the rest of the screen remains garbled. if i then force the resize with xrandr -s 1920x1080 it works fine.

Reproducible: Always

Steps to Reproduce:
1. open kscreen
2. resize to a smaller sizer
3. resize back to the original size

Actual Results:  
the screen is cut by 1/4 and rest remains garbled

Expected Results:  
the screen should be resized correctly
Comment 1 Paulo Dias 2015-01-28 12:00:35 UTC
Created attachment 90740 [details]
original size, output of xrandr --verbose --current
Comment 2 Paulo Dias 2015-01-28 12:01:34 UTC
Created attachment 90741 [details]
resized using kscreen, output of xrandr --verbose --current
Comment 3 Paulo Dias 2015-01-28 12:02:48 UTC
Created attachment 90742 [details]
garbled display,kscreen tried to change size to original size, output of xrandr --verbose --current
Comment 4 Paulo Dias 2015-01-28 12:03:30 UTC
Created attachment 90743 [details]
restored original size using xrandr -s 1920x1080, output of xrandr --verbose --current
Comment 5 Paulo Dias 2015-01-28 12:04:04 UTC
Created attachment 90744 [details]
xorg.0.log of the affected resizes
Comment 6 Paulo Dias 2015-01-28 12:05:39 UTC
kscreen version is: 5.2.0+git20150128.1016+14.10-0ubuntu0
Comment 7 Daniel Vrátil 2015-01-29 15:14:05 UTC
I have just pushed a bunch of changes to git master of libkscreen, could you please test them and let me know if it fixes the problem?
Comment 8 Paulo Dias 2015-01-30 11:59:34 UTC
i can confirm it fixed the issue, great work :)