Re: Problem with maximised windows using multiple displays and tint2 panel
Anthony Thyssen <a.thyssen-YlX7AVbyhojX/[email protected]> Mon, 5 Feb 2018 10:54:20 +1000
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CABOaSg13JcqCAoMbpvnCmWzqe8frXBfP5hMRjcZb0Z0h0GA88g@mail.gmail.com> |
--===============5290094213433960808==
Content-Type: multipart/alternative; boundary="f403045e9bb20ba69105646c83c6"
--f403045e9bb20ba69105646c83c6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
You need to get openbox to specify the appropriate margins for your setup.
For me this is... (in ".config/openbox/rc.xml")
<margins>
<top>0</top>
<bottom>28</bottom>
<left>60</left>
<right>0</right>
</margins>
Just fill in the details for your setup, and restart
You can check what openbox (or other window manager) set it by looking at
the display
properties, using the "xprop" command to gather the information...
xprop -root | grep _NET_DESKTOP_GEOMETRY\(
xprop -root | grep _NET_NUMBER_OF_DESKTOPS\(
xprop -root | grep _NET_WORKAREA\(
In sequence this returned the size of the display, the number of desktops,
then the workarea on
each desktop (x,y,width,height). For openbox those four numbers just
repeat for each desktop.
I have a 1920x1080 pixel display, with 4 desktops each with a workarea
of 60, 0, 1860, 1052
NOTE: Not all applications follow the defined window manager workarea.
Especially the older ones.
On Sun, Feb 4, 2018 at 7:51 AM, Dan MacDonald <[email protected]> wrote:
> Hi
>
> I am running tint2 git with the standard openbox package as used in
> Ubuntu 17.10 ie 3.6.1. tint2 has a config option called strut_policy:
>
> https://gitlab.com/o9000/tint2/blob/master/doc/tint2.md#panel
>
> When strut_policy is set to 'follow_size', maximised windows shouldn't
> cover the tint2 panel and indeed that is the case for my primary
> display but not for my secondary, smaller display. The bottom of
> maximised windows get obscured by the tint2 panel on my smaller, 1080
> display.
>
> At first I suspected this was more likely to be a bug in tint2 so I
> quizzed its developer but he believes tint2 is acting correctly so
> maybe I have misconfigured openbox or this is an openbox bug? I have
> posted my openbox config, tint2 config and other details in this
> ticket:
>
> https://gitlab.com/o9000/tint2/issues/696
>
> Please let me know if any more details about my config are required
>
> Thanks
> _______________________________________________
> openbox mailing list
> [email protected]
> http://icculus.org/mailman/listinfo/openbox
--f403045e9bb20ba69105646c83c6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">You need to get openbox to specify the appropriate margins=
for your setup.<div><br></div><div>For me this is...=C2=A0 (in ".conf=
ig/openbox/rc.xml")</div><div><br></div><div><div><font face=3D"monosp=
ace, monospace">=C2=A0 <margins></font></div><div><font face=3D"monos=
pace, monospace">=C2=A0 =C2=A0 <top>0</top></font></div><div><f=
ont face=3D"monospace, monospace">=C2=A0 =C2=A0 <bottom>28</bottom=
></font></div><div><font face=3D"monospace, monospace">=C2=A0 =C2=A0 <=
;left>60</left></font></div><div><font face=3D"monospace, monospac=
e">=C2=A0 =C2=A0 <right>0</right></font></div><div><font face=
=3D"monospace, monospace">=C2=A0 </margins></font></div></div><div><b=
r></div><div>Just fill in the details for your setup, and restart<br><br>Yo=
u can check what openbox (or other window manager) set it by looking at the=
display</div><div>properties, using the "xprop" command to gathe=
r the information...<br><font face=3D"monospace, monospace">xprop -root | g=
rep _NET_DESKTOP_GEOMETRY\(<br></font></div><div><font face=3D"monospace, m=
onospace">xprop -root | grep _NET_NUMBER_OF_DESKTOPS\(<br></font></div><div=
><span style=3D"font-family:monospace,monospace">xprop -root | grep _NET_WO=
RKAREA\(</span><br style=3D"font-family:monospace,monospace"></div><div><sp=
an style=3D"font-family:monospace,monospace"><br></span></div><div>In seque=
nce this returned the size of the display, the number of desktops, then the=
workarea on</div><div>each desktop (x,y,width,height).=C2=A0 For openbox t=
hose four numbers just repeat for each desktop.</div><div>I have a=C2=A0192=
0x1080=C2=A0 pixel display,=C2=A0 with 4=C2=A0desktops=C2=A0 each with a wo=
rkarea of=C2=A060, 0, 1860, 1052<br><br></div><div>NOTE: Not all applicatio=
ns follow the defined window manager workarea.=C2=A0 Especially the older o=
nes.<br></div><div><br></div></div><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote">On Sun, Feb 4, 2018 at 7:51 AM, Dan MacDonald <span dir=
=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">allcoms=
@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I am running tint2 git with the standard openbox package as used in<br>
Ubuntu 17.10 ie 3.6.1. tint2 has a config option called strut_policy:<br>
<br>
<a href=3D"https://gitlab.com/o9000/tint2/blob/master/doc/tint2.md#panel" r=
el=3D"noreferrer" target=3D"_blank">https://gitlab.com/o9000/<wbr>tint2/blo=
b/master/doc/tint2.<wbr>md#panel</a><br>
<br>
When strut_policy is set to 'follow_size', maximised windows should=
n't<br>
cover the tint2 panel and indeed that is the case for my primary<br>
display but not for my secondary, smaller display. The bottom of<br>
maximised windows get obscured by the tint2 panel on my smaller, 1080<br>
display.<br>
<br>
At first I suspected this was more likely to be a bug in tint2 so I<br>
quizzed its developer but he believes tint2 is acting correctly so<br>
maybe I have misconfigured openbox or this is an openbox bug? I have<br>
posted my openbox config, tint2 config and other details in this<br>
ticket:<br>
<br>
<a href=3D"https://gitlab.com/o9000/tint2/issues/696" rel=3D"noreferrer" ta=
rget=3D"_blank">https://gitlab.com/o9000/<wbr>tint2/issues/696</a><br>
<br>
Please let me know if any more details about my config are required<br>
<br>
Thanks<br>
______________________________<wbr>_________________<br>
openbox mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://icculus.org/mailman/listinfo/openbox" rel=3D"noreferrer" =
target=3D"_blank">http://icculus.org/mailman/<wbr>listinfo/openbox</a></blo=
ckquote></div><br></div>
--f403045e9bb20ba69105646c83c6--
--===============5290094213433960808==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kb3BlbmJveCBt
YWlsaW5nIGxpc3QKb3BlbmJveEBpY2N1bHVzLm9yZwpodHRwOi8vaWNjdWx1cy5vcmcvbWFpbG1h
bi9saXN0aW5mby9vcGVuYm94
--===============5290094213433960808==--