THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1167 - Windows remains black after update
User who did this - Uli Schlachter (psychon)

----------
I can't see this being a bug in awesome.

The problem is easily reproduced here. I asked xtrace[0] about what is 
happening and the result is "SDL does not redraw its window". It receives an 
Expose event and just ignores it. Expose events mean "Please redraw this part 
of the window" and thus ignoring it means nothing is visible. The black that is 
visible is just the background color that SDL set on its window and that the 
X11 server automatically shows if it has nothing better to show.

Since ignoring Expose events is SDL's own problem, I cannot see how this is 
awesome's fault.

So you are right that this is a race. SDL draws its window before it is visible 
and thus this doesn't do anything. By the time the window becomes visible, it 
ignores the events saying so. It looks like SDL tries to work around this in 
src/video/x11/SDL_x11window.c by having X11_ShowWindow() wait for a MapNotify 
event before continung. However, a MapNotify does not mean that you can now 
draw to the window. Eg let's say you have multiple workspaces and the SDL 
window is put on a currently-not-visible workspace. The same problem would 
occur again.

[0] http://xtrace.alioth.debian.org/
----------

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1167#comment3648

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to [email protected].

Reply via email to