! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Programmatically resizing window fails
Status:
RESOLVED: INVALID

Comments

Description Sander Jansen 2007-12-21 20:51:14 CET
When I try to programmatically change the size of my window (using the FOX toolkit, with a call to XReconfigureWMWindow), it fails unless the old motif style hints have been specified that the window may resize (MWM_FUNC_RESIZE). This seems wrong, since the Motif hints should only apply to user actions, not to the programmers actions. At least, that's what I'm guessing what is going wrong. Changing the position in the call of XReconfigureWMWindow seem to work fine.
Comment 1 Olivier Fourdan editbugs 2007-12-23 16:10:37 CET
I do not see this in the code, but feel free to point me to where you think this is wrong.
Comment 2 Sander Jansen 2007-12-23 16:41:16 CET
In clientComputeWidth/clientComputeHight it checks against PMaxSize/PMinSize which are set by FOX if no resizing should be allowed. these are not updated by FOX, so they still contain the old values, therefore, resizing will fail. I believe the WM should just quietly update these values... I'll ask the FOX author and see what he thinks..
Comment 3 Olivier Fourdan editbugs 2007-12-23 21:46:53 CET
PMaxSize/PMinSize are not updated by the the WM, this is normal behaviour and it looks like a toolkit bug to me.

BTW, this is totally unrelated to MWM hints, so this looks like to another different toolkit bug.
Comment 4 Sander Jansen 2007-12-24 18:43:37 CET
Ok, I've talked to the FOX author. He will fix the issue of not updating the size hints.  I'll leave it up to you whether or not have a workaround in xfwm for other possible broken toolkits.
Comment 5 Olivier Fourdan editbugs 2008-04-19 12:33:19 CEST
Closing as invalid, the bug is not in the WM

Bug #3760

Reported by:
Sander Jansen
Reported on: 2007-12-21
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Additional information