Move window between Separate X screens

Hello
If I would like to run an application on my secondary monitor I just run:
env DISPLAY=:0.1 xclock
Is there something similar to send an already open window to my secondary monitor?
Thanks
// Lasse

I spent a lot of time looking for something like that. Not possible for X apps currently, there were really old programs to do that which can't be used anymore with newer versions of things like xorg-server.

Similar Messages

  • Moving windows between separate X screens

    I've just switched over to using separate X screens for various different reasons and the only thing I can't get sorted is to find a way to move a window from one screen to another. I've tried 'xmove' and 'wmctrl' so far but had no joy. I don't want to go back to using twinview and searching around the usual supects is turning up nothing besides what i've already mentioned.
    From what i've read it's (quite easily) do-able on other platforms but does anyone know if this is possible on Linux?

    I believe this can be done, at least from GTK level. Here is a short example of how this can be achieved:
    #include <gtk/gtk.h>
    #include <gdk/gdk.h>
    GtkWindow * mainWindow;
    GdkDisplay *second_display;
    GdkScreen *second_screen;
    static void print_hello (GtkWidget *widget, gpointer data)
    g_print ("Hello World\n");
    GdkScreen* screen = gtk_window_get_screen(mainWindow);
    gint number = gdk_screen_get_number(screen);
    g_print ("Opened in screen %d \n",number);
    gtk_window_set_screen (mainWindow, second_screen);
    screen = gtk_window_get_screen(mainWindow);
    number = gdk_screen_get_number(screen);
    g_print ("Now in screen %d \n",number);
    int main (int argc, char *argv[])
    GtkWidget *window;
    GtkWidget *button;
    gtk_init (&argc, &argv);
    second_display = gdk_display_open (":0.1");
    second_screen = gdk_display_get_default_screen (second_display);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    mainWindow = GTK_WINDOW(window);
    gtk_window_set_title (GTK_WINDOW (window), "Hello");
    g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
    gtk_container_set_border_width (GTK_CONTAINER (window), 10);
    button = gtk_button_new_with_label ("Hello World");
    g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
    gtk_container_add (GTK_CONTAINER (window), button);
    gtk_widget_show (button);
    gtk_widget_show (window);
    gtk_main ();
    return 0;
    This is modified from hello world example of gtk. Save the code to simple.c, then it should be compiled with:
    gcc -o simple simple.c `pkg-config --libs --cflags gtk+-2.0`
    The program will be started with a button inside, on where you start it. When button is clicked, the window will be move to the screen with display name ":0.1", you can change that value in source code to have it move to other screen.
    As far as I known, Gimp and emacs utilized this ability so that you can move their windows to other screen.
    I am not comfirmed but I think there is a similiar way to do so in QT. So if a program use either GTK or QT, its windows is capable to move to other screens.
    I do not know whether this can be done in Xlib or Xcb, and how this is done in GTK. Maybe they re-created a new X window and re-map everything to that container. So maybe it is hard to control in Window Managers. Its upon the developer of applications to make this ability available.

  • Moving application windows between two monitors in Mountain Lion

    I have a Macbook Pro that sits on my desk below an external monitor that is hooked into the laptop.  I use the Displays setting to arrange my external monitor on top of my laptop monitor.  Unitl I install Mountain Lion, I used to be able to move windows between the two screens.  Now, all application windows get stuck at the menu bar.  This is not a problem if the external monitor is placed to the right, left, or the bottom of my Macbook Pro screen in the Display setting.  The problem occurs only when it located above the laptop monitor.  Has anyone else experience this and is there a quick fix?

    Hi Jerry,
    The arrangement in the displays setting does show correctly. 
    If I restart the laptop, it will let me move applications between the two displays but as soon as it wakes up from sleep, I can no longer move applications to the external display if it is positioned on top (it will work if it is postioned on either sides or bottom).
    I did a fresh reinstall of the Mountain Lion operating system (reformatted the hard drive) but this did not fix it.
    Homie

  • Move Window from One Screen to the Other

    With multi-monitor setup, is there a shortcut key to move a window from one screen to another? This is about the only thing I miss from my old days of using a PC.
    Way too lazy to drag
    Thanks!
    Alex

    Saeven wrote:
    With multi-monitor setup, is there a shortcut key to move a window from one screen to another?
    no, there isn't and I don't believe you can possibly make one. I don't know how this works in windows but os x would need to know where exactly to put a window on the other screen. since screens often have different sizes that would be impossible. besides, with extended desktop there is no actual separation between the screens and a window can be partly on one screen and partly on the other.
    I'm afraid you are just going to have to drag.
    This is about the only thing I miss from my old days of using a PC.
    Way too lazy to drag
    Thanks!
    Alex

  • HT3819 how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    Oops, I forgot a step between 7 and 8 ... before syncing the iPhone I need to explicitly send the document back to iTunes on the iPhone, or the changes won't come over at all ...
    and then one more thing ... Numbers on iOS does NOT recognize a number of key features of the OSX app, such as conditional formatting ... so after editing my document on iOS and syncing it back to OSX on my Mac, all of those settings are lost (no more conditional formatting, have to do it all over again)
    What am I doing wrong ?

  • IE11 in Windows 8.1 changes scale when moving window between screens

    Hi,
    I'm using Windows 8.1 with IE11 on a Dell Latitude E6510 with an external LG screen. I use both screens in my daily work and when I move a IE11 window from the internal screen in my laptop to the external LG screen, the scaling in IE11 changes and gets smaller.
    It happens when the windows is halfway over to the external screen. On the way back it changes again and gets bigger. I've use the "One scaling for all my screens" in the Control Panel|Display applet without success. It's only IE11 that has this
    behaviour, no other programs does this.
    Brgds Jonas

    Hi Brgds Jonas,
    I agree with  Robert Aldwinckle .
    In addition, Windows 8.1 definitely seems to be doing some automatic display scaling here, as has been rumored based on beta builds of the OS.
    The first option is for multiple monitors with different ppi. windows will choose for you based on what the ppi is. use trial and error until you get the size you want and both monitors will be about that size. if they are close in ppi it will not scale
    them differently because I am pretty sure it only chooses from the default scaling sizes.
    For more reference, you may refer to:
    Windows 8.1 DPI Scaling Enhancements
    http://blogs.windows.com/windows/b/extremewindows/archive/2013/07/15/windows-8-1-dpi-scaling-enhancements.aspx
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Can't move window whose top bar is off screen

    I have a window whose top bar is off the screen. The window is a preferences window. Because part of the window is off the screen, I can't properly set the preferences. The program is Quicksilver, but this is a general problem in Mac OSX and I would like a solution for the general problem.
    The window got offscreen when I detached an external monitor from my laptop. The window moved from the external screen to my computer's screen, but it moved above the screen. I can see the window in expose, and the bottom of the window normally.
    Because the top of the window is above the screen, I am not able to move it. There is no option to maximize the window in the menu bar's "window" setting -- only minimize and close. If I close the window and reopen it, it reopens in the same place.
    The general solution on the internet is to use an applescript to move the first window of the first process, but possibly because this window is a preferences window, the applescript does not work.
    Is there a way, any way, in mac os x to move any window that is not to drag the top bar? I'm getting really frustrated at this stuck window.

    One thing that works sometimes is to change the resolution on your monitor. That might put the window where you can reposition it, then you can put the resolution back where you like it.
    charlie

  • Cannot move windows to other Screen, e17

    Hi guys,
    I am using the ATI Catalyst drivers and I am unable to move windows from one screen to the other. The cursor is blurred when going to the other side, but it is still visible with the original screen with the window I am trying to move. I am using enlightenment and the newest catalyst drivers. Here is my xorg.conf file
    Section "ServerLayout"
    Identifier "aticonfig Layout"
    Screen 0 "aticonfig-Screen[0]-0" 0 0
    Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
    EndSection
    Section "Module"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-1"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    BusID "PCI:5:0:0"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-1"
    Driver "fglrx"
    BusID "PCI:5:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device "aticonfig-Device[0]-0"
    Monitor "aticonfig-Monitor[0]-0"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1440x900_60"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "aticonfig-Screen[0]-1"
    Device "aticonfig-Device[0]-1"
    Monitor "aticonfig-Monitor[0]-1"
    DefaultDepth 24
    SubSection "Display"
    Viewport 0 0
    Depth 24
    Modes "1024x768_75"
    EndSubSection
    EndSection

    I have the same problem. After Mountain Lion was installed, my longstanding display configuration (MacBook Air coupled with large Dell monitor) will no longer allow app windows to be moved from the Air screen to the large display when the large display is configured on top of the Air.  Only the side-by-side configuration works.  Mouse can move above the Air menu bar, but not any app windows.  Mirroring works as usual; this is the only problem. I've tried re-setting the display preferences, and I've also tried pairing with another (non-Apple) monitor.  Same problem.  Is this a known bug?  Is there a fix on the way?

  • Probook 4540s loops between start screen and windows 8.1 logo screen

    So my laptop is loop between mentioned two screens. I ran two diagnostic tests - start up and run in. Both passed. I took it to my university tech support and they tried to install a start up repair via flash drive. An application error popped up, x00007 something. So upset. HELP!!! Is it an hardrive issue or because of the update it tried to do before I shut it down manually?

    @snmeesala 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Move photos between folders

    I want to move photos between folders in dropbox.  On my PC I could download the photo folders, open two photo screens and drag and drop pictures between them.  How do I do that in Yosemite?

    S/He seems to want to open two finder windows. These photo folders referred to seem to be on  dropbox.
    I hope so, but was a bit concerned, that the question might relates to the way, that Dropbox is importing iPhoto Libraries or backing up iPhoto Libraries. I wanted to be sure, that the iPhoto Library is not actually sitting in Dropbox,, or referenced originals.
    As in these links:
    What is the iPhoto importer, and what do I do if I'm ... - Dropbox
    How do I copy my photos from iPhoto to Dropbox? (Dropbox ...
    Dropbox for Mac Updated with iPhoto Integration, Automatic ...

  • Separate X screen. Can't access original screen.

    Okay, I'm using a laptop and have an external monitor plugged into it. I've set it to run separate X screens (I want it to run like separate entities).
    I've created a bash script to start openbox in the second window.
    $HOME/.config/openbox/screen2.sh
    In my /usr/bin/openbox-session
    Anyway, so it starts off great. Both screen pull up and every thing's happy.
    However the problem comes when I switch monitors. When I move my mouse over I can't move it back.
    I can't seem to figure out how to get back to the other screen.
    Below is my xorg.conf
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 1.0 (buildmeister@builder63) Fri Aug 14 17:55:55 PDT 2009
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "ServerFlags"
    Option "Xinerama" "0"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "DELL 1704FPV"
    HorizSync 30.0 - 81.0
    VertRefresh 56.0 - 76.0
    Option "DPMS"
    EndSection
    Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "Seiko"
    HorizSync 30.0 - 75.0
    VertRefresh 60.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600M GS"
    BusID "PCI:1:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600M GS"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "CRT-0"
    Option "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "DFP-0"
    Option "metamodes" "DFP: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection

    My bad.
    New development though.
    I was recently at a LAN party and I was using one of my friends monitors with my laptop.
    After setting up everything (it was pretty much the same Xorg minus the Screen Res) I was able to switch back and forth...
    I'm not sure but I have a hunch that this might be caused by the fact that my screen's resolution is so much smaller than my laptops resolution.

  • Accidentally dragging windows between Spaces

    I am constantly finding myself accidentally dragging app windows between spaces. If you are in space 3 or 4 (or any space on the bottom row) and you are dragging a window to move it around, if you drag it along the top of the screen for too long, spaces thinks that you want to move it to the space above it, and pops you and the window to the new space. Is there a way to disable that option?

    don't know how to disable it altogether but you can increase the delay before it happens. the default delay is 0.75 (seconds).
    To set it to , say, 3 seconds, enter the following in terminal
    defaults write com.apple.dock workspaces-edge-delay -float 3
    to get back to the original setting
    use
    defaults write com.apple.dock workspaces-edge-delay -float 0.75

  • Best practice to move things between various environments in SharePoint 2013

    Hi All SharePoint Gurus!! - I was using SP deployment wizard to move Sites/lists/libraries/items etc. using SP Deployment Wizard (spdeploymentwizard.codeplex.com) in SP 2010. We just upgraded to SP 2013. I have few Lists and Libraries that I need to push
    into the Staging 2013 and Production 2013 environment from Development 2013 environment. SP Deployment Wizard  is throwing error right from the startup. I checked SP 2013 provides granular backups but is restricted to Lists/Library level. Could anybody
    let me know if SP Deployment Wizard works for 2013? I love that tool. Also, Whats the best practice to move things between various environments?
    Regards,
    Khushi
    Khushi

    Hi Khushi,
    I want to let you know that we built
    SharePoint Migration tool
    MetaVis Migrator that can copy and migrate to and from on-premise or hosted SharePoint sites. The tool can copy entire
    sites with sub-site hierarchies, content types, fields, lists, list views, documents, items with attachments, look and feel elements, permissions, groups and other objects - all together on at any level of granularity (for
    example, just lists or just list views or selected items). The tool preserves created / modified properties, all metadata and versions. It looks like Windows Explorer with copy/paste and drag-n-drop functions so it is easy to learn. It does not require any
    server side installations so you can do everything using your computer or any other server. The tool can copy the complete sites or just individual lists or even selected items. The tool also supports incremental or delta copy based on the previous migrations.
    The tool also includes Pre-Migration Analysis that helps to identify customizations.
    Free trial is available:
    http://www.metavistech.com . Feel free to contact us.
    Good luck with your migration project,
    Mark

  • Automator - How do I: Mouse Click, Move Windows, and more

    Hello,
    I am attempting to create my own Automator programs and for a while I had some that worked nicely. I have recently been tweaking my iMac so that it can "think" on its own (by automator of course) and do things for me. However, I've run across a block with Mavericks (I believe it's due to Mavericks).
    1. How can I get Automator to register a mouse click? "Watch me do" does not seem to want to work for me at all. I also would prefer if it would just be a registered mouse click, but not actually use the mouse (I know this is possible) so that if I'm doing something and it runs, it won't disturb my mouse and I can keep working.
    2. How can I register a keyboard stroke? Same as above
    3. How can I have automator move windows? I have two monitors and there are times when I may want it to move a window from one mintor to another
    The following is a list of all the things I'm attempting to accomplish at the moment (with other things when I think of them) with automator (either through applications, folder actions, or ical actions):
    1. Register a mouse click at a given area or on a given element in a safari page
    2. Register a keyboard stroke in a given program (be able to focus on a program and then do the keystroke)
    3. Move windows from one location to another
    4. Full-screen and Un-full-screen iTunes at certain times of day
    5. Download all purchased items on iTunes that aren't on the computer (sometimes iTunes doesn't download stuff if it was downloaded on my MacBook Pro first)
    6. Automatically voice read reminders (that I've set in Reminders) each day at a given time (I can use loop to repeat it to make sure I hear it all)
    I'll think of more of course, but the mouse click, keyboard stroke, and moving windows is the big thing I'm trying to figure out how to do. Can anyone help?
    Also, I am not a computer tech. I am tinkering with this because it's fun and helpful, but an answer of "just use applescript" or "just use java" will likely just give me a headache. I know that it's going to be one of those codes, but I'm hoping someone has a "base" code that can be copied and pasted that's just a standard click that I can adjust for where I need to click and what process I need to click on.
    If there is an Action Pack that includes a "Register Mouse Click" and/or "Register Keyboard Stroke", then that would work great, but the only action packs for automator I've seen that work with Mavericks is for photoshop.

    You're asking for a lot in one post.  It would be better to break your requests down a bit. 
    For example, to deal with mouse clicks, you can use the Automator Action Run Shell Script with this python script:
    import sys
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
            theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
            CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
            mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclick(posx,posy):
            mouseEvent(kCGEventLeftMouseDown, posx,posy);
            mouseEvent(kCGEventLeftMouseUp, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # Click the "Apple"
    mouseclick(25, 5);  
    # 1 second delay       
    time.sleep(1);        
    # Restore mouse position
    mousemove(int(currentpos.x),int(currentpos.y))
    It will look like this in Automator:
    To drag something (i.e. a window, a file icon) from position 40,60 to 60,300:
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
               theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
               CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
               mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
               mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
               mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
               mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # move mouse to upper left of screen
    mouseclickdn(40, 60);
    # drag icon to new location
    mousedrag(60, 300);
    # release mouse
    mouseclickup(60, 300);
    # necessary delay
    time.sleep(1);
    # return mouse to start positon
    mouseclickdn(int(currentpos.x),int(currentpos.y));
    For keystokes in AppleScript (which can be added to Automator with the Run Applescript Action) see: http://dougscripts.com/itunes/itinfo/keycodes.php

  • Windows Server 2008 black screen with mouse *PLEASE HELP*

    Hello fellow techs,
    I have been tearing my hair out for the past 12hrs on this issue.
    About 3 weeks ago, one of our clients reported that they were experiencing
    issues on the network so one of the staff went into the server room and noticed
    the screen was black with only the cursor. As they couldn't reboot, they
    decided to hold the power button to power it off. When they powered it back
    up, it went passed the windows loading
    splash screen, and again the screen is black with
    the mouse pointer in the center of the screen.
    I am diagnosing the server and find that at the black screen, I’m able to move
    the cursor and beyond that nothing happened. I started in safe mode with the
    exact same results.
    I have been trying many different solutions from posts that I have found in
    Google but no change.
    From other machines you can type \\servername in
    the run box and see the shared folders, as well as ping it.
    This is a very urgent request as I need to have the Server back up and running
    by tomorrow.
    I am quiet willing to pay for phone support with anyone that can assist as soon
    as possible. I am happy to transfer founds via Paypal.<o:p></o:p>
    PLEASE HELP!

    Hi,
    I agree with sm, you should give us more details. Also you should use sfc  /scannow
    command to scans the integrity of all protected system files and repairs files with problems when possible. For more details, please refer to the following article.
    Sfc
    http://technet.microsoft.com/en-us/library/ff950779.aspx
    Before going further, would you please let me know whether there were any changes on the affected server? Has windows update or any new device been added? Please also check your shadow copies.
    The Windows Server black screen may be caused by them.
    In addition, there are similar questions, please refer to.
    Windows Server 2008 black screen
    http://social.technet.microsoft.com/Forums/en-US/463b529b-26a6-4d5d-88f5-7d8b3460d165/black-screen-windows-2008-r2
    Windows Server 2008 and the Black Screen of Waiting
    http://projectdream.org/wordpress/2009/03/03/windows-server-2008-and-the-black-screen-of-waiting/
    By a way, you also can be able to boot into last know good configuration to solve the trouble. You can refer to the following similar question that provide the detailed operations.
    Windows Server 2008 black screen with only the mouse pointer showing
    http://social.technet.microsoft.com/Forums/en-US/5c878af8-78f2-430d-9530-a0e5ad73ff03/windows-server-2008-black-screen-with-only-the-mouse-pointer-showing
    Hope this helps.
    Best regards,
    Justin Gu

Maybe you are looking for