[Solved] dwm - move/toggle current window to second screen/projector

I'm using dwm and I'm trying to figure out if there's a MODKEY that I can use/assign to move/toggle the current window to my second monitor and the other way around. Thanks.
Last edited by inurl (2014-03-29 05:28:22)

They are called screens in the man page:
man dwm wrote:
       Mod1-, Focus previous screen, if any.
       Mod1-. Focus next screen, if any.
       Mod1-Shift-,
              Send focused window to previous screen, if any.
       Mod1-Shift-.
              Send focused window to next screen, if any.

Similar Messages

  • Full Screen Window on second screen minimizes when windows explorer opens..

    I did implement a full screen window on my second screen (it's a feature needed by my application)
    When I open windows explorer (I'm on windows XP), or when I click in a windows explorer window, the second screen window is minimized, even if explorer pops in the first screen.
    Is there any way to overcome this problem?
    Any help would be appreciated...
    Laurent
    (sample code below)
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JWindow;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GraphicsDevice;
    import java.awt.GraphicsEnvironment;
    import java.awt.Window;
    import javax.swing.JButton;
    import javax.swing.JToggleButton;
    import java.awt.Rectangle;
    import java.awt.GridBagLayout;
    import javax.swing.JLabel;
    public class FullScreenTest {
         private JFrame jFrame = null;  //  @jve:decl-index=0:visual-constraint="94,35"
         private JPanel jContentPane = null;
         private JToggleButton jToggleButton = null;
         private JPanel jFSPanel = null;  //  @jve:decl-index=0:visual-constraint="392,37"
         private JLabel jLabel = null;
         private Window window;
          * This method initializes jFrame     
          * @return javax.swing.JFrame     
         private JFrame getJFrame() {
              if (jFrame == null) {
                   jFrame = new JFrame();
                   jFrame.setSize(new Dimension(474, 105));
                   jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   jFrame.setContentPane(getJContentPane());
              return jFrame;
          * This method initializes jContentPane     
          * @return javax.swing.JPanel     
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.add(getJToggleButton(), null);
              return jContentPane;
          * This method initializes jToggleButton     
          * @return javax.swing.JToggleButton     
         private JToggleButton getJToggleButton() {
              if (jToggleButton == null) {
                   jToggleButton = new JToggleButton();
                   jToggleButton.setBounds(new Rectangle(50, 23, 360, 28));
                   jToggleButton.setText("Show Full Screen Window on 2nd screen");
                   jToggleButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             showFullScreenWindow(jToggleButton.isSelected());
              return jToggleButton;
         protected void showFullScreenWindow(boolean b) {
              if(window==null){
                   window = initFullScreenWindow();
              window.setVisible(b);
         private Window initFullScreenWindow() {
              GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
              GraphicsDevice[] gds = ge.getScreenDevices();
              GraphicsDevice gd = gds[1];
              JWindow window = new JWindow(gd.getDefaultConfiguration());
              window.setContentPane(getJFSPanel());
              gd.setFullScreenWindow(window);
              return window;
          * This method initializes jFSPanel     
          * @return javax.swing.JPanel     
         private JPanel getJFSPanel() {
              if (jFSPanel == null) {
                   jLabel = new JLabel();
                   jLabel.setBounds(new Rectangle(18, 19, 500, 66));
                   jLabel.setText("Hello ! Now, juste open windows explorer and see what happens...");
                   jFSPanel = new JPanel();
                   jFSPanel.setLayout(null);
                   jFSPanel.setSize(new Dimension(500, 107));
                   jFSPanel.add(jLabel, null);
              return jFSPanel;
          * @param args
         public static void main(String[] args) {
              FullScreenTest me = new FullScreenTest();
              me.getJFrame().setVisible(true);
    }

    I suppose that you have this exception when the second window is initiated...
    Excuse my remark, it may be perfectly stupid : do you have two screens? The full screen window is supposed to show itself on the user's second screen.
    Or maybe the screens are not handled the same way on each computer? (I'm not used at developping applications working on two screens...)
    thanks for your help
    LK

  • Cannot move photoshop CS6 window around on screen, it is stuck in one spot

    cannot move photoshop CS6 window around on screen, it is stuck in one spot

    Hi there,
    Thanks for your response. I have since fixed the problem by unplugging my
    external monitor and restarting my computer.
    Best,
    -Jake
    On Fri, Jun 13, 2014 at 3:21 AM, c.pfaffenbichler <[email protected]>

  • Black Window on second screen in Photoshop CS6

    Hi Guys,
    hope you can help me with the following issue.
    Ive booted my computer up and started photoshop. i use a second screen, its installed automaticly on Mac OSX 1.8.
    Now, when i drag the file to th second screen, it appears to become black. if i drag it back to my Home-Screen, the content appears.
    resizing dont change anything as well as disable the graphic processor on photoshop.
    btw, a second restart solves the issue. but i dont want to restart my machine everytime when i work on photoshop.
    hope anyone can help me out.
    thanks guys.

    The feature as provided by Adobe may have bugs (I wouldn’t know) but it is one issue where bugs of the OS or the GPU drivers may mislead users to believe that there is a Photoshop bug when really it is somebofy else’s fault, but they only become apparent because Photoshop may make higher demands on certain components than other applications.

  • Can't position windows on second screen JDeveloper 10.1.3 EA1

    I love to work with JDeveloper. For a better overview i use two monitors.
    At monitor one I place the JDeveloper Main Windows with the code-editor.
    On the second monitor I place the other windows like "Structure" or Log-Windows.
    This works good with JDeveloper 10.1.2.
    But with the new version Oracle JDeveloper 10.1.3 EA1 (10.1.3.0.2) I can't place separate windows on the second monitor if the Main Windows is on the first Monitor.
    (I use Windows 2000.)

    I have a dual screen setup with a ATI Radion VE card - I've experienced no problems with splitting windows across both screens (either way). This is running on XP though.
    You might want to pull the latest drivers for your card and see if that helps if you're not already on it.

  • (Solved) Mouse moves faster than windows (e17)

    I use KDE as my main DE so I have mainly qt applications. I wanted to try out something new so I downloaded e17, openbox and fluxbox, hoping to try each out for a week and see what I liked.
    The problem arises with e17. I'm loving it except for the fact that most of my applications move literally slower than my mouse, its like there's some effect enabled that makes my windows have 'inertia' and move slower than my mouse cursor.
    The movement seems to also be toolkit (qt/gtk) independant, however this is hard to judge because I have mainly qt applications other than Rhythmbox.
    Any ideas?
    Thanks in advance.
    Last edited by mtbrooks33 (2012-03-23 10:48:58)

    kevinmchapman wrote:Are you using the Composite module? I once had a similar problem when I was trying out some options with that module, but my video card did not like. Probably the easiest "fix" is to delete the .e folder in your home directory. You will need to go through the first-run questions again to recreate it, but saves a lot of experimental box ticking/unticking.
    Deleted the .e folder and reconfigured. Problem solved! Thread marked as such. Thanks for your help.

  • [SOLVED] dwm - switch current window from left - right

    I'm using dwm and I'm trying to figure out if there's a MODKEY that I can use/assign to move the current window to the left or to the right (up/down) of a second window opened. For instance:
    |           |         |          |         |         |
    |   W1   |   W2  |   --> |  W2  |   W1  |
    |           |         |          |         |         |
    Thanks!
    Last edited by inurl (2014-09-18 03:27:40)

    Great, I applied the push patch and worked well when moving clients up/down. movestack did the trick for horizontal clients. Thanks!

  • Can I 'move' my current Win XP Pro sytem into boot camp?

    Searched high and low, but haven't been able to find an answer to this.
    Can I 'move' my current Windows XP Pro SP2 installation into the Boot Camp Partition of one of the new iMacs?
    By 'move' I mean something like ghosting/backing up the current C drive and then restoring it into the boot camp partition.
    I'm relatively tech savvy (at least on the Windows side) so fiddling with / re-installing drivers etc shouldn't be a problem (as long as Windows comes up and recognizes at least the keyboard)
    Thanks

    You should download and play with Parallels Desktop for Mac. Not as a final solution, but as an in between. they have some utilities for moving Windows machines and images into virtual machines and also utilities for moving between virtual machines and boot camp - so some combination of those might be the solution you're looking for.
    Personally, I just run XP and Vista in Parallels - it works perfectly.
    http://www.parallels.com/en/products/desktop/

  • TS4163 Every time I try to export my movie into a Windows Format from compressor it shrinks the movie to 27 seconds.WHY? HELP

    Every time I try to export my movie into a Windows Format from compressor it shrinks the movie to 27 seconds.WHY? HELP

    Probably because you have the free version of Flip4MAc from Telestream that limits exported files to 30 seconds or so. There ae several paid versions  – depending on your requirements
    Good luck.
    Russ

  • Firefox sporadically moves my current tab to a new window.

    About 2-3 times per week, I'll be browsing with multiple tabs open, and Firefox will suddenly "close" my current tab and re-open it in a new window. I say "close" because the tab is not listed under "Recently Closed Tabs." Rather, Firefox seems to just move the tab to a new window.
    I thought maybe there was a keyboard shortcut for this that I was accidentally hitting, but I can't find what the shortcut for that would be. Did I just miss it?
    The site I'm visiting doesn't seem to matter, as it's happened with different sites, including my webmail service, Google, and Facebook. The number of tabs open doesn't seem to matter either, as it's happened with 50+ tabs and just now happened with 24 tabs (which is low for me).
    == This happened ==
    A few times a week
    == About a month or so ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    Firefox 3.5/6 versions have a feature called ''tear-off tabs''.
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    bug489729 (Disable detach and tear off tab): https://addons.mozilla.org/firefox/addon/12276

  • RDC with Mac Laptop and Second Screen - Cannot move Mac Windows onto RDC Screen

    The older version of RDC 2.1.1 works perfectly with an additional screen. With the new version 8.0.10, although you can launch and use RDC, you can, no longer, move a window over onto the second screen. So RDC works fine, but you do not have the flexibility
    of using both screen while RDC is running. This is clearly a backward step from 2.1.1.

    Hi,
    Thank you for posting in Windows Server Forum.
    There is one expected MAC behavior as on Mac only one app gets focus when you go full screen.
    In addition, please share some more light with snapshot for your issue for further research.
    Thanks for your understanding and support!
    Regards.
    Dharmesh Solanki
    TechNet Community Support

  • Anytime I move my mouse my current window disappears. I move the mouse to the top left corner and then I comes back. How can I turn this off?

    Anytime I move my mouse my current window that is open disappears. When I move my mouse to the top left corner it comes back. How do I turn this off? It's not a Zoom issue, it disappears completely. Help please.

    Are you running 10.6 Snow Leopard as your profile indicates?
    If so, it sounds like maybe an Expose or Active Screen Corners issue?
    Go to Apple > System Preferences > Expose & Spaces > Expose and
    1. experment with the Active Screen Corners selections
    2. take a look at your F key settings for Expose
    3. lastly check your Dashboard settings

  • FF4 wont move a tab to a new window. The new window opens fine but the existing tab stays on the current window. What's wrong?

    I just upgraded to firefox 4. I'm using session manager extension.
    I have multiple tabs open in my firefox window and I want to move some tabs to a new window. I followed the support guide which tells how to do this, however, when I drag the tab off the current window, the new window gets opened as it should, but the tab I was trying to move stays in the current window and does not get moved to the new one. Any ideas what the problem is?
    Thanks
    Mick

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I rectify the issue that AE (CC) won't import mov files on Windows 8.1.  (It's the most current Quicktime).

    How do I rectify the issue that AE (CC) won't import mov files on Windows 8.1.  (It's the most current Quicktime).

    troubleshooting QuickTime errors with After Effects

  • [SOLVED]dwm - back into tiling?

    If I accidentally move or resize a window while dwm is in tiling mode, how can I get that window to tile with other programs without opening/closing it. For example, if open chromium, resize or move it a little while it is in tiling mode, and open another chromium window, I can't get the first chromium to tile with the second. Is this possible? Thanks
    Last edited by Draucia (2011-08-23 21:42:01)

    man dwm wrote:
       Mouse commands
           Mod1-Button1
                  Move focused window while dragging. Tiled windows will be toggled to the floating
                  state.
           Mod1-Button2
                  Toggles focused window between floating and tiled state.
           Mod1-Button3
                  Resize focused window while dragging. Tiled windows will be toggled to the float‐
                  ing state.
    On my dwm Alt+ middle mouse button toggles the layout.

Maybe you are looking for

  • Can no longer get the plug in to charge

    The port on Ipad must have gotten damaged some how because I'm very careful when plugging it in, but now I can't get a plug in the device to charge it.

  • Problems after upgrading RAM......why??

    I recently installed after market memory (2 G) in my Macbook but as soon as I installed the memory my Mac started performing very weird, for example, it would freeze, the mouse would act funny, etc. At first I thought I got bad Ram but as soon as upg

  • Anyone succeeded printing N copies with DocPrintJob ?

    Hi, I am trying to print multiple copies of a given file to a printer. My code is "classical" :      DocPrintJob pj = services[ij].createPrintJob();      FileInputStream fis = new FileInputStream(fileName);      DocFlavor flavor = DocFlavor.INPUT_STR

  • Photoshop will not allow to save imported Aperture Files as jpg

    After importing raw files into Aperture, then importing into Photoshop, the option to 'save as jpg' is no longer available. Why? Or better yet, what do I need to do to be able to resume saving my psd files as jpgs?

  • AIR applications - AIR license agreement showing instead of application

    Hi there I have a user who is experiencing the following issue - when he tries to run an AIR application, the license agreement shows (accept/decline), and then nothing (the app doesn't launch when you click accept). This happens for all his AIR appl