widget snap
Roman Shtylman
shtylman at gmail.com
Sat Jan 2 18:52:06 CET 2010
The downside I saw with putting it into the DestopContainment was that
handling things like snap on resize become much harder because the
resize event has already happened for the plasmoid. To snap on resize,
you have to adjust the new size during the resize event. Also, the
information about what is happening to the plasmoid (moving or
resizing ...etc) would all have to be propagated to the
DesktopContainment layout manager and I didn't see an easy or clear
way to do that... but I might have overlooked something. My first
thoughts were to do it in the desktop containment but the information
wasn't there so I moved over to the handle.
~Roman
On Sat, Jan 2, 2010 at 10:21 AM, Marco Martin <notmart at gmail.com> wrote:
> On Saturday 02 January 2010, Sebastian Kügler wrote:
>> On Saturday 02 January 2010 10:56:37 Marco Martin wrote:
>> > On Saturday 02 January 2010, Roman Shtylman wrote:
>> > > I was sitting around trying to organize some of my plasmoids... and
>> > > realized that you can't easily make a stack of plasmoids all exactly
>> > > aligned ... at least not that I could figure out. I thought it would
>> > > be really cool to be able to snap plasmoids to other plasmoids as well
>> > > as to virtual "guidelines" created by the bounding boxes of the
>> > > plasmoids. I spent a few hours and finally got the effect I was
>> > > looking for. Should work for both moves and resizes. Attached is the
>> > > patch against kdelibs head. Right now the snap "strength" is hard
>> > > coded to 3 pixels.
>> > >
>> > > ~Roman
>> >
>> > wonder if it's something more for the layout manager of
>> > DesktopContainment or if should really be generic in applethandle..
>> > well custom containments implement their own handle so it's fine i guess.
>> > anyways is a good feature. Could still make in for 4.4 or perhaps it has
>> > to wait?
>>
>> I'd really like to see this in ASAP, it feels like this was missing for
>> some time already, but I couldn't really pin it down.
>>
> Sebas, Roman,
> soo, let's put it in NOW? (before 5th, plz :p)
>
> --
> Marco Martin
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
More information about the Plasma-devel
mailing list