Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have seen this question, and I would like something similar.

When a new window is opened, I would like it to be shown on my primary monitor. Then if there is a need, I would drag it to the secondary monitor. Is there a way to do it?

I am using xfce and gnome, and I have 2 seperate X Sessions.

share|improve this question

1 Answer 1

With 2 separate X servers that is (until I am proven wrong) not possible. If you want to drag windows between screen you will have to use twin-view or you will need to choose the x-server where your application will open before you do so.

The reason for that would be that the application would need to un-glue itself from a display, and from it's own window manager, leaving being only peaces of its shatered shadow, then the recreate itself and the core of the application re-attached to the new window manager you want it to go to, then a new window would need to be created around the application using the new window manager... Its like, no, it will do that for you.

There is however an application that can sort of do that for you called xpra. What it does is not remove the application from the original x server an recreate it on the new one but it will make it so that the application running on the original X server is displayed on the other X server. Not like VNC but directly. Have a look here for more information.

share|improve this answer
    
Does it mean that it is possible to do with twin view? –  BЈовић Nov 1 '11 at 21:52
    
Yeah, but that means you are running 1 X server and thus 1 window manager. You can simply drag a window, place it on the 2nd screen, etc.. –  Bruno Pereira Nov 1 '11 at 22:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.