This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Smoothly resize window

36

Votes
40
4
Tags: kwin kwin kwin
(comma "," separated)
User avatar
Kver
Registered Member
Posts
326
Karma
2
OS

Smoothly resize window

Sun Dec 27, 2009 6:56 am
The idea calls for when a window requests to be resized; Currently, when the window requests to be resized it just jumps to the new size instantly. The idea is to add an option in the control panel enable smooth window resizing in a more fluid motion when the window is automaticlly being resized.

The smooth resizing option would include settings to decide which corner/edge is considered the "centre" of the resize, and how quickly it will perform the resize. Kwin, if composited, might also include an option for "wobble" integration.


Reformed lurker.
Olivier_CRR
Registered Member
Posts
21
Karma
0
OS

Smoothly resize window

Tue Dec 29, 2009 1:02 am
I don't think it's possible with many applications since they recalculate their interface depending on size.
Try resizing a Firefox window and you will notice how it rearranges itself, for example. It won't look smooth at all.
User avatar
Fri13
Registered Member
Posts
397
Karma
4
OS

Smoothly resize window

Tue Dec 29, 2009 5:48 pm
The resize is also tied to the mouse movement. We can not add a option to time of resize because you end up to situation that user moves the mouse faster than the animation gets drawn. But we can focus to get the animation actually faster, like it would be without window managers composition.
User avatar
Kver
Registered Member
Posts
326
Karma
2
OS

Smoothly resize window

Thu Dec 31, 2009 6:03 pm
Fri13 wrote:The resize is also tied to the mouse movement. We can not add a option to time of resize because you end up to situation that user moves the mouse faster than the animation gets drawn. But we can focus to get the animation actually faster, like it would be without window managers composition.


This is not for when a user is resizing the window, but when the window resizes itself. Such as a Firefox window resizing itself for certain websites.

For example, I believe transmission (though not KDE software) will resize its window to automatically fit the height of the list of active torrents. Using smooth sizing, it would give the appearance of the window sliding up and down.

Olivier_CRR wrote:I don't think it's possible with many applications since they recalculate their interface depending on size.
Try resizing a Firefox window and you will notice how it rearranges itself, for example. It won't look smooth at all.


Good point, but I think this could be overcome easily;
A 'screenshot' of the program could be made by kwin, and as the resize occurs it could fade from the screenshot to the already correctly sized program.
Window exceptions could be added to programs that just wouldn't smoothly scale, so simpler programs could still receive polish.
It could do a scale operation on the window contents until the actual post-sized contents are ready, and switch mid-transition.
There's a few ways it could be done quickly and smoothly.

Users could also disable if it hurts performance, powerful computers could simply process the contents live. Mid-range computers could use one of the above methods I came up with.


Reformed lurker.


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]