sillysloft / fluxbox

Fluxbox Window Manager (Mirror)
http://fluxbox.org/news/
Other
0 stars 1 forks source link

fluxbox-1.0rc2 will not resize certain wxWidgets/GTK widgets #670

Open sillysloft opened 17 years ago

sillysloft commented 17 years ago

I encountered this bug while progressing through a tutorial on wxWidgets at http://www.bzzt.net/~wxwidgets/icpp\_wx6.html. To reproduce, download the archive at the bottom of the page, unzip, and compile with: g++ $(wx-config --cxxflags --libs) -o basic basic.cpp

This example program has been tested and found to work within other window managers such as openbox and KWin and Metacity. WxWidgets manuals and code, and gtk2 code suggest that this is related to Motif WM hints. I tried the patch file from req#1560803 with no success.

The above code example assumes an existing installation of wxwidgets on the host box.

Reported by: chuck_s

sillysloft commented 17 years ago

Logged In: YES user_id=1656399 Originator: YES

Apologies, I was in a rush to get out of the office.

Specifically, this behavior exhibits itself when a wxDialog is created with the wxRESIZE_BORDER style. Somehow, this triggers calls within GTK to notify the WM with certain hints to display a resizing window, but flux fails to do so. This behavior can be triggered within the example program by selecting the 2nd option under about. The resulting window should be resizable.

Original comment by: chuck_s

sillysloft commented 17 years ago

Logged In: YES user_id=296419 Originator: NO

You can resize it with alt+rmb. The resize-decor is just disabled. I will look into it more.

Original comment by: fluxgen

sillysloft commented 17 years ago

Logged In: NO

I just recently discovered that this very same issue causes the download dialog frame for Mozilla Firefox 2.0.0.1 to be unresizable as well.

Original comment by: nobody

sillysloft commented 17 years ago

Logged In: NO

This has been quite difficult for a novice X11 programmer to track down. Nevertheless, after digging through X11 programming manuals and the fluxbox code, I have discovered that enabling transient window decorations eliminates this behavior. In future releases, I request that this option be enabled by default if not already done so, respectful of the discretion of the lead software engineers.

Please feel free to mark this "Feature, not a bug" and close this bug report.

Original comment by: nobody

sillysloft commented 17 years ago

Logged In: YES user_id=1538990 Originator: NO

Agreed. I think it is a lot easier for new users to figure out they can turn off the decorations than to figure out they need to turn them on. Plus a lot of applications abuse their transient windows in ways that they really should be resizable. I've changed the default in svn.

Original comment by: mark-t

sillysloft commented 17 years ago

Original comment by: mark-t