Hi,

I know this little bug is pretty trivial and more so pedantic, but I
wanted to report it nonetheless and especially ask for confirmation from
other cwm users. It would be great if anyone could try to reproduce.

I'm running a recent snapshot:
OpenBSD 6.4-current (GENERIC.MP) #411: Mon Oct 29 19:18:32 MDT 2018

Consider the following ~/.cwmrc:
# this is important as it doesn't happen without ignoring the window
ignore xclock

As well as this ~/.xsession:
# alternatively, just execute the xclock command directly in cwm
xclock -digital -geometry -0-0 &
cwm

It seems that the xclock window is put at the bottom right edge but with
a 2 pixel gap on both edges. This doesn't happen at the top and left
edges, so it looks like only the bottom and right edges are affected.

"+0+0" (top left) - no gap at top, no gap at left
"-0+0" (top right) - no gap at top, 2 pixel gap at right
"+0-0" (bottom left) - 2 pixel gap at bottom, no gap at left
"-0-0" (bottom right) - 2 pixel gap at bottom, 2 pixel gap at right

Here's the xwininfo output for all combinations.

"+0+0" (top left):

$ xclock -digital -geometry +0+0 &
$ xwininfo
xwininfo: Window id: 0x80000c "xclock"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 278
  Height: 40
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -1642+0  -1642-1040  +0-1040
  -geometry 278x40+0+0

"-0+0" (top right):

$ xclock -digital -geometry -0+0 &
$ xwininfo
xwininfo: Window id: 0x80000c "xclock"

  Absolute upper-left X:  1640
  Absolute upper-left Y:  0
  Relative upper-left X:  1640
  Relative upper-left Y:  0
  Width: 278
  Height: 40
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1640+0  -2+0  -2-1040  +1640-1040
  -geometry 278x40-2+0

"+0-0" (bottom left):

$ xclock -digital -geometry +0-0 &
$ xwininfo
xwininfo: Window id: 0x80000c "xclock"

  Absolute upper-left X:  0
  Absolute upper-left Y:  1038
  Relative upper-left X:  0
  Relative upper-left Y:  1038
  Width: 278
  Height: 40
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+1038  -1642+1038  -1642-2  +0-2
  -geometry 278x40+0-2

"-0-0" (bottom right):

$ xclock -digital -geometry -0-0 &
$ xwininfo
xwininfo: Window id: 0x80000c "xclock"

  Absolute upper-left X:  1640
  Absolute upper-left Y:  1038
  Relative upper-left X:  1640
  Relative upper-left Y:  1038
  Width: 278
  Height: 40
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1640+1038  -2+1038  -2-2  +1640-2
  -geometry 278x40-2-2

Regards
André

Reply via email to