Bug 3252 - window contents always redrawn on move or resize
Status: CLOSED WORKSFORME
Alias:
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.4.2
Hardware: PC Linux
: P3 normal
Assignee: Dana Jansens
QA Contact:
URL:
: 3573
Depends on:
Blocks:
 
Reported: 2007-07-04 14:49 EDT by Akkana Peck
Modified: 2008-03-17 09:47:05 EDT
1 user (show)

See Also:



Description Akkana Peck 2007-07-04 14:49:47 EDT
I have the pref to update window contents on resize (not clear if it should apply to move as well, but I'd certainly like it to) turned off -- <drawContents>no</drawContents> --, and was expecting some sort of xor rubberband when I moved or resized windows. But instead, the window contents are continuously redrawn, and the underlying app gets a continual stream of expose events as I move or resize it. That can be fairly expensive for some apps, and makes my poor little wimpy cpu's fan spin.

Is there a way I can get rubberbanding on move and resize, and not have to load my cpu with all these redraws? (If not, the obconf entry should perhaps be changed to describe whatever that pref really does.)
Comment 1 Dana Jansens 2007-07-04 14:54:47 EDT
What the option does is not a rubber band thing.  It means that the client window inside is not resized until you stop resizing the frame.  If you shrink and then enlarge the window, you'll get expose events, yes, but if you just enlarge it, the client window inside is not resized and does not update things until you finish.

I tried with 3.4 svn branch, and the option is working as expected there.  Mikachu uses this so I always hear very quickly when it is broken.
Comment 2 Akkana Peck 2007-07-04 16:03:29 EDT
Mea culpa. It turns out that all the expose events were coming from the size popup, which I had configured to appear centered on the window. With the size popup above the window, all the expose events go away. (Just mentioning it here in case anyone else notices the same problem and happens to hit this bug.)
Comment 3 Dana Jansens 2007-07-04 16:06:17 EDT
closing
Comment 4 Dana Jansens 2008-03-17 09:47:05 EDT
*** Bug 3573 has been marked as a duplicate of this bug. ***