Bug 53976 - Option to make mainwindow stick to screen-edges and always on top
Summary: Option to make mainwindow stick to screen-edges and always on top
Status: RESOLVED DUPLICATE of bug 63516
Alias: None
Product: kopete
Classification: Unmaintained
Component: Main Application (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-03 11:07 UTC by Stefan Gehn
Modified: 2004-03-12 21:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gehn 2003-02-03 11:07:20 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Juerd on irc wants that feature but does not want an account here so I'm filing this one ;)

It would be nice to have the mainwindow stick to one screenedge and be always on top like kicker is, so you always see it and cannot move it around.
Comment 1 Martijn Klingens 2003-02-03 11:46:45 UTC
Subject: Re: [Kopete-devel]  New: Option to make mainwindow stick to screen-edges and always on top

On Monday 03 February 2003 11:07, sgehn@gmx.net wrote:
> It would be nice to have the mainwindow stick to one screenedge and be
> always on top like kicker is, so you always see it and cannot move it
> around.

Yes, I'd like to see a 'docking' option too, but I wonder if KMainWindow 
allows it.

Comment 2 Stefan Gehn 2003-02-08 20:46:42 UTC
Subject: Re:  Option to make mainwindow stick to screen-edges and always on top

Time to answer I guess :))
On Montag Februar 3 2003 11:46, you wrote:
> On Monday 03 February 2003 11:07, sgehn@gmx.net wrote:
> > It would be nice to have the mainwindow stick to one screenedge and be
> > always on top like kicker is, so you always see it and cannot move it
> > around.
>
> Yes, I'd like to see a 'docking' option too, but I wonder if KMainWindow
> allows it.

I think you can do a lot using KWin classes :)

Bye, Stefan aka mETz
Comment 3 Lubos Lunak 2003-04-24 15:56:20 UTC
To create a window that's like kicker: 
Set the window type to NET::Dock (see KWin::setType()) in order to make it borderless and 
kept above normal windows. 
In order to reserve a place at screen edge, set the strut ( see KWin::setStrut()), the values are 
sizes reserved at the edges, you'll most probably want to set one of them to height/width of 
the window and others to zero. 
Also, place the window manually at the desired position. 
That should do it. 
 
Comment 4 Martijn Klingens 2003-04-24 20:16:18 UTC
Subject: Re: [Kopete-devel]   Option to make mainwindow stick to screen-edges and always on top

On Thursday 24 April 2003 15:56, Lubos Lunak wrote:
> To create a window that's like kicker:
> Set the window type to NET::Dock (see KWin::setType()) in order to make it
> borderless and kept above normal windows.
> In order to reserve a place at screen edge, set the strut ( see
> KWin::setStrut()), the values are sizes reserved at the edges, you'll most
> probably want to set one of them to height/width of the window and others
> to zero.

I've already done something like this at work and it worked well there, but in 
the case of Kopete I would really like the ability that some Windows apps 
have to "auto-dock" when moving the window.

Since moving windows is AFAIK kwin's realm it would be nice if we could set 
some flag that would automatically set 'docked' mode when pushing the window 
to one of the screen edges. Is that possible?

Comment 5 Lubos Lunak 2003-04-24 20:23:33 UTC
Not now, e.g. Kicker does its autohiding itself. But I think there a wishlist for kwin for such 
feature (and if it's not, feel free to add it). 
 
 
Comment 6 Martijn Klingens 2003-04-24 20:37:19 UTC
Subject: Re: [Kopete-devel]   Option to make mainwindow stick to screen-edges and always on top

> Not now, e.g. Kicker does its autohiding itself. But I think there a
> wishlist for kwin for such feature (and if it's not, feel free to add it).

Ehm, I'm not talking about auto-hide, but auto-dock.

Of course a docked window could then auto-hide too, but first of all it should 
automatically change into docked state when dragged to the screen edge and 
change back into a normal window when dragged back into the screen...

Should I still check for and/or file a wishlist or is this an entirely 
different issue that cannot be done?

Comment 7 Olivier Goffart 2003-04-24 21:01:01 UTC
i did id and it seems there is a problem with the kicker, i still want it take the whole 
width. (now, the right bottom corner is empty) 
 
also the kopete windows looks ugly without border. i think better to dont use 
NET::Dock. 
 
and like Martijn said, it would be nice if the kopete window can be docked when 
moving. we can eventually catch the moveEvent, and when moving outside the screen 
dock it. 
 
also. is that possible to share the right border with another application. the kopete 
contactlist take the an half on the screen, and another big kicker appelet the other. 
 
 
Comment 8 Olivier Goffart 2004-03-12 21:53:33 UTC
It's the same as placing it in a sidebar, or in a dasktop appelet

*** This bug has been marked as a duplicate of 63516 ***