Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LonelyStar

X11: Creating a non-resizable window

This topic is 5190 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I don''t know exactly, but if I were to want to find out, I''d probably go look closely at the WM hints you can set on the window. One of them is probably non-resizeable.

Share this post


Link to post
Share on other sites
Creating a non-resizable window has to do with the WM (for instance, in my WM it''s impossible), and the atoms you set. What toolkit are you working with, or is it pure Xlib?

Share this post


Link to post
Share on other sites
Like has been said, it's up to the window manager to care if you set the hint, but here's the documentation for the standard way to do it: Extended Window Manager Hints: _NET_WM_ALLOWED_ACTIONS. I don't think there was an ICCCM convention that did the same thing, but I could be wrong. Edit: hit return randomly in there for some reason.

[edited by - Null and Void on April 21, 2004 7:49:05 PM]

Share this post


Link to post
Share on other sites
the other way is the brute force way. just put a callback in the resize (it''s in fact configure) event and whenever the window shape changes in a direction you don''t want just ajust it off the point. as far as i know this event is called as soon as the resize is done but before any updates on the screen are carried out (thus the new size is in the x-server, but not on screen yet).

never tried it out yet because the philosophy in x11 is to not force a window shape onto the user but having to get along with whatever you get.

Share this post


Link to post
Share on other sites
That is a Bad Thing, part of the ICCCM says that clients should not fight with the window manager about things like size and placement.

Share this post


Link to post
Share on other sites
Hi,
after your responses, I gave up the thought of makeing my OpenGL window non-rezizeble under Linux.
But now, another thought suddenly poped into my mind:
xmms is not resizable, and if I create a dialog-window with wxWindows (wxGTK) it is not resizable too.
How to they do that? Can''t I do it the same way?
Thanks!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!