Discussion:
[directfb-users] Animating windows with SaWMan (Johan Larsson)
Russell Dawson
2012-01-17 20:39:48 UTC
Permalink
Couple of ideas to try:

(1) try returning DFB_NOIMPL from all of your sawman callbacks. If
the windowstack refresh starts working, slowly change them back to
DFB_OK (or whatever you have now) and see if the problem shows up.

(2) try defining either SAWMAN_NO_LAYER_DOWNSCALE and/or
SAWMAN_NO_LAYER_DST_WINDOW in sawman_updates.c when you build sawman
and see if it has any effect.

(3) try putting show-empty on a single line in /etc/sawmanrc
Send directfb-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
       http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of directfb-users digest..."
  1. Animating windows with SaWMan (Johan Larsson)
----------------------------------------------------------------------
Message: 1
Date: Mon, 9 Jan 2012 14:31:16 +0100
Subject: [directfb-users] Animating windows with SaWMan
Content-Type: text/plain; charset="iso-8859-1"
Hello.
I am trying to animate windows from various processes using a SaWMan-based
WM program, and I've run into some trouble.
1: Receive button press in the SaWMan InputFilter callback
2: Set a periodic timer and return.
SaWManager->Lock(SaWManager)
for (<every window>) {
     SaWManWindowConfig config;
     config.bounds = windows->second.bounds;
     config.bounds.x += 20;
     SaWManager->SetWindowConfig(SaWManager,
                                                      window,
                                                      SWMCF_POSITION,
                                                      &config);
}
SaWManager->QueueUpdate(SaWManager, DWSC_MIDDLE, NULL);
SaWManager->Unlock(SaWManager);
SaWManager->ProcessUpdates(SaWManager, DSFLIP_NONE);
I've tried several variations of the above, but that's the theme of
it. However, this does not work. It seems the system never receives any
notification that it needs to redraw the window. I can see the window move
only if its owner process tries to redraw it. I've found no way to trigger
a redraw operation from the SaWMan process.
So I'm wondering, what is the correct method for doing animated window
transitions using SaWMan, and is there a way to trigger a redraw of a
window after calling SetWindowConfig?
Regards,
Johan L
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.directfb.org/pipermail/directfb-users/attachments/20120109/5efdabe2/attachment-0001.html>
------------------------------
_______________________________________________
directfb-users mailing list
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
End of directfb-users Digest, Vol 83, Issue 5
*********************************************
Loading...