justTony / pytyle

Automatically exported from code.google.com/p/pytyle
GNU General Public License v3.0
0 stars 0 forks source link

Borders are drawn above floating windows #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Put a window that is not tiled "over" the borders drawn by pytyle (a 
floating window, a open dialog, etc).

What is the expected output? What do you see instead?

The borders shouldn't be drawn over all the windows.

What version of the product are you using? On what operating system?

pytyle2-hg 27-1, ArchLinux 

Original issue reported on code.google.com by felipe.c...@gmail.com on 2 Jan 2011 at 2:34

GoogleCodeExporter commented 8 years ago
Ah... This is a bit of a predicament. I'm not sure that this can be avoided.

The problem is, PyTyle isn't the window manager, and drawing borders around 
windows is typically an action done *only* by the window manager. In order to 
achieve this effect, I had to flag the border windows with override_redirect, 
which basically means that the borders are ignored by the window manager... In 
effect, they are immune to any stacking operations.

I had experimented with code that went the other way--not flag the windows as 
override_redirect, and configure the window to behave like a border. I'm afraid 
the results were a bit inconsistent, but there might be some code in the 
revision history of ptxcb/window.py (in the LineWindow constructor) that does 
this if you're brave.

Even then, you'd have to worry about the stacking position of the borders... 
It's a bit tricky.

This is one of the many reasons why I'm working on my own window manager now: 
https://github.com/BurntSushi/pyndow -- I've just hit the limits of what a 
non-window manager tiling app can do.

Original comment by jamslam@gmail.com on 4 Jan 2011 at 9:36

GoogleCodeExporter commented 8 years ago
I changed the borders to my openbox theme. It's not the best solution, but i 
can live with that.

Original comment by felipe.c...@gmail.com on 6 Jan 2011 at 2:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
As a workaround for those of you using openbox, I've coded this simple patch 
for ob that allows to configure different width/colors for the borders of 
undecorated active/inactive windows:

https://bugzilla.icculus.org/show_bug.cgi?id=4889

Original comment by carlosjo...@gmail.com on 2 Feb 2011 at 11:50

GoogleCodeExporter commented 8 years ago
Excellent! Thanks :-)

Marking this as won't fix.

Original comment by jamslam@gmail.com on 2 Feb 2011 at 4:46