piston icon indicating copy to clipboard operation
piston copied to clipboard

Margin when using i3 tiling WM

Open krumelmonster opened this issue 6 years ago • 3 comments

When running the spinning-square example, the square isn't centered in the window and, when scaling down the window, margins will be visible at the right and top edge of the window like this: margins in i3wm The problem won't occur in xfwm4 no margins in xfwm4

The problem also won't occur if the window is initialized in floating mode (if i3 is configured to open windows in floating, which makes little sense for a tiling wm). The problem however persists if already opened windows are put into floating mode. The problem won't appear with the glutin examples so it's not a pure glutin issue.

The exact same problem will occur with all the examples in the piston-examples repository

I don't know if the behaviour of tiling wms to ignore the window size requests of clients is standard but it would be nice for piston to work without problems anyways.

krumelmonster avatar Nov 04 '18 15:11 krumelmonster

I have the same problem :/

hetake2 avatar Nov 14 '18 12:11 hetake2

Thanks. You can work around it by adding

for_window [class="spinning-square"] floating enable

or whatver your application is called to your i3/config to get coding.

krumelmonster avatar Nov 14 '18 15:11 krumelmonster

Thanks. You can work around it by adding

for_window [class="spinning-square"] floating enable

or whatver your application is called to your i3/config to get coding.

That didn't help me, the objects in window are not centered and the resolution is not correct, instead of full image I have that grey background, only when I'm resizing window I can see other parts of image, but even starting window in a floating mode, that changes nothing :(

18y-11m-16d-novh11m1542305755s_1920x1080_scrot

hetake2 avatar Nov 15 '18 18:11 hetake2