List Info

Thread: Starting application on specific screen




Starting application on specific screen
user name
2008-03-29 03:51:52
Hi,
suppose I have a dual-screen configuration (XRandr 1.2) and
would like to start an application on a specific screen. Is
there
an easy way to do that in Qt4/KDE4?

Thanks,
Volodya

P.S. Yea, I'm getting really annoyed with KDevelop's
debugger 
with separate terminal enabled popping said terminal on top
of KDevelop.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Starting application on specific screen
user name
2008-03-29 04:05:31
On 29.03.08 11:51:52, Vladimir Prus wrote:
> suppose I have a dual-screen configuration (XRandr 1.2)
and
> would like to start an application on a specific
screen. Is there
> an easy way to do that in Qt4/KDE4?

That means you have the same desktop stretched over both
screens? The
code to do that would simply be putting the window at a
proper x/y
position (using QWidget::move()). There's also
QDesktopWidget, which
knows how many screens you have and how large they are so
thats where
you can probably find the right coordinates.

If you need to do it without code, then I suggest to use
KWin's "special
window behaviour stuff". Right-click the titlebar and
choose "Advanced",
there you can choose either "special settings for this
window" or
program. There you can set its position to a fixed place.

Andreas

-- 
Your sister swims out to meet troop ships.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Starting application on specific screen
user name
2008-03-29 04:30:17
On Saturday 29 March 2008 12:05:31 Andreas Pakulat wrote:
> On 29.03.08 11:51:52, Vladimir Prus wrote:
> > suppose I have a dual-screen configuration (XRandr
1.2) and
> > would like to start an application on a specific
screen. Is there
> > an easy way to do that in Qt4/KDE4?
> 
> That means you have the same desktop stretched over
both screens? The
> code to do that would simply be putting the window at a
proper x/y
> position (using QWidget::move()). There's also
QDesktopWidget, which
> knows how many screens you have and how large they are
so thats where
> you can probably find the right coordinates.

Thanks. Though it seems I would be duplicating the job of
the window
manager, which generally figures out where to put the new
window.

> 
> If you need to do it without code, then I suggest to
use KWin's "special
> window behaviour stuff". Right-click the titlebar
and choose "Advanced",
> there you can choose either "special settings for
this window" or
> program. There you can set its position to a fixed
place.

I wonder if it's possible to ask the window manager to place
new
window on a specific screen programmatically. If not, I
guess I
can juse use QDesktopWidget and pick a position at random


Thanks,
Volodya

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: Starting application on specific screen
user name
2008-03-29 06:07:02
On 29.03.08 12:30:17, Vladimir Prus wrote:
> On Saturday 29 March 2008 12:05:31 Andreas Pakulat
wrote:
> > On 29.03.08 11:51:52, Vladimir Prus wrote:
> > > suppose I have a dual-screen configuration
(XRandr 1.2) and
> > > would like to start an application on a
specific screen. Is there
> > > an easy way to do that in Qt4/KDE4?
> > 
> > That means you have the same desktop stretched
over both screens? The
> > code to do that would simply be putting the window
at a proper x/y
> > position (using QWidget::move()). There's also
QDesktopWidget, which
> > knows how many screens you have and how large they
are so thats where
> > you can probably find the right coordinates.
> 
> Thanks. Though it seems I would be duplicating the job
of the window
> manager, which generally figures out where to put the
new window.

I thought I had seen an option for this in kwin's
configuration, but now
I can only find one to either show new windows on the screen
with the
mouse or show them where the currently focussed window is.

There's also a KWindowManager class (name may be a bit
different) in
kdelibs, which provides access to some window manager stuff.
IIRC.

Also you might want to ask in kwinkde.org instead.

Andreas

-- 
You will be awarded a medal for disregarding safety in
saving someone.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )