4

I removed the title bar from Openbox by modifying the /openbox/rc.xml. I know that I can use keybindings to minimize, maximize, close, etc. But, how can I drag the windows with the mouse like I did before?

2 Answers 2

7

According to this Ubuntu forums post, add the following to your rc.xml file:

Re: window dragging in openbox

I think you would want to change (or add) a mousebind entry to the Mouse section of rc.xml with a different binding. Mine currently says this:

<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>

Then you can move windows by dragging them while pressing Alt. To use the Super-drag instead use button="W-Left"

2
  • Thanks a lot! This works with the default configuration of rc.xml.
    – user224753
    Apr 13, 2017 at 2:52
  • 1
    Just for clarification, in this case "Left" means left mouse button (not arrow keys), because of the mousebind keyword. Aug 27, 2020 at 12:21
3

Not sure about Openbox, but most windows can be dragged by pressing the Alt key and dragging with the mouse anywhere in the window.

3
  • That depends on the window manager configuration. Does Openbox have this configuration by default? Steven's answer explains how to make Openbox do it. Apr 12, 2017 at 23:11
  • @Gilles - I don't know if I have ever used Openbox, but I've used a lot of different window managers and distros, and it seems that most of them had this feature by default. I'm sure it's not 100% universal, but I thought it was worth a shot here. Apr 13, 2017 at 18:18
  • 1
    It worked for me on openbox. A window was placed irregularly on the screen and no titlebar was available. Alt + drag worked for me as described in this answer.
    – Will Haley
    Apr 8, 2018 at 1:21

You must log in to answer this question.