View previous topic :: View next topic |
Author |
Message |
davidbrooke Guru

Joined: 03 Jan 2015 Posts: 341
|
Posted: Fri Jan 13, 2017 2:20 am Post subject: [RESOLVED] Openbox - Window resizing with left mouse click |
|
|
I have been experimenting with Openbox and need help with window resizing.
There seems to be a issue on not being able to resize around the total perimeter of the window using the mouse left button. To further describe what I'm talking about...when you move the cursor along the edge of the window...the cursor will change to a resizing tool...then you can left click and hold to resize the window.
Of the 8 possible access points to resize a window:
Three do work:
Top Left Corner, Top and Top Right Corner
Five do not work:
Left, Right, Bottom, Bottom Right Corner and Bottom Left Corner
Secondly, I can't drag to maximize / unmaximize.
I have looked at the ~/user/.config/openbox/rc.xml file but I'm not quite sure what I'm looking at....here are the two areas I have interest in:
The following concerns the "drag to maximize / unmaximize". I don't see any code to do this function...only to drag / move the window around.
Code: | <context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop">
<to>next</to>
</action>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktop">
<to>previous</to>
</action>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktop">
<to>next</to>
</action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximizeFull"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
</context> |
The following concerns the "resizing the window using left click"
Code: | <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context> |
Any thoughts?
Thanks
Last edited by davidbrooke on Tue Jan 17, 2017 5:59 pm; edited 1 time in total |
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 5881 Location: Removed by Neddy
|
Posted: Sun Jan 15, 2017 1:46 pm Post subject: |
|
|
what openbox theme? I found a couple would be "impossible" to resize as they put some of the borders at 1px _________________ https://www.otw20.com/ Where you can talk |
|
Back to top |
|
 |
davidbrooke Guru

Joined: 03 Jan 2015 Posts: 341
|
Posted: Tue Jan 17, 2017 5:49 pm Post subject: |
|
|
Naib wrote: | what openbox theme? I found a couple would be "impossible" to resize as they put some of the borders at 1px |
Your insight was correct!
I edited the themerc file for the theme and found that the border width = 0. I changed it to something other than 0 and the window resizing around the window works as expected.
Thanks |
|
Back to top |
|
 |
davidbrooke Guru

Joined: 03 Jan 2015 Posts: 341
|
Posted: Tue Jan 17, 2017 5:58 pm Post subject: |
|
|
Concerning the second issue - drag to maximize / unmaximize....
I found that this question has been around for a while and it seems that it can't be resolved due to the limitation of the Openbox programming. There seems to be a lack of ability to detect the screen edge or something to that effect such that if I drag a window by the title bar to the upper screen edge...there is no reference to detect the upper screen edge.
At this point, unless something changes the issue is closed |
|
Back to top |
|
 |
|