Fwd: Fwd: [BUG] Board size is only correctly calculated on a resize event in i3wm

Arun Persaud <[email protected]> Fri, 1 Apr 2016 21:40:03 -0700
Newsgroups gmane.comp.gnu.xboard.devel
Message-ID <[email protected]>
Hi

Let's see if this works... I got the following email, which seems to
have some issues with inline images (at least that's my guess) and
xboard-devel. Images are therefore attached.

Arun

----------------------------------------------------------------
From: *Adrian Petrescu* <[email protected] <mailto:[email protected]>>
Date: Wed, Mar 30, 2016 at 12:30 PM
Subject: [BUG] Board size is only correctly calculated on a resize event
in i3wm
To: "[email protected] <mailto:[email protected]>"
<[email protected] <mailto:[email protected]>>


Hey everyone,

I'm using (GTK) xboard on i3wm, a tiling window manager
(https://i3wm.org/). When a new application is started in i3wm, it
splits the screen into two and gives the new window the newly-allocated
space. xboard appears to have some sort of unfortunate interaction with
this: when it is started up in i3wm, the GTK window itself correctly
fills the space, but the actual board pixmaps occupy a small corner of
it - at least UNTIL any sort of resize event happens (say, by manually
dragging the side of the window by even 1px) at which point the board
size is correctly recalculated and the board fills the window.

Here's a screenshot example: here's a brand new xboard window:
Inline image 1
And here it is after I've resized the xboard window by about 1 pixel:
Inline image 2

I figure it's a matter of i3wm (perhaps incorrectly) invoking a
window-creation callback at the wrong time, before it's correctly
computed the space available, so xboard doesn't know it's full
dimensions until later. But then again, no other app I use with i3wm
exhibits a similar bug, so maybe it can be fixed on just xboard's side.

Let me know if I can provide any other details :)

Cheers!
-Adrian
image2.png (image/png, 712.8 KB) - not displayed
image.png (image/png, 29.3 KB) - not displayed