-
-
Notifications
You must be signed in to change notification settings - Fork 20.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X11 window management #1487
X11 window management #1487
Conversation
================================================ Usage: scons p=x11 experimental_wm_api=yes
…ment Conflicts: platform/x11/detect.py
…odot into x11-window-management
* set_minimized(bool) * bool is_minimized() * set_maximized(bool) * bool is_maximized()
I tested this previously, and it worked perfectly. Debian and GNOME. |
Don't work on OpenSuse 13.1 with nouveau driver: I have used your latest trunk: Compiled with Running direct from the project manager gives out this from the console:theuserbl@linux-faoz:~/godot/hurikhan/godot/trunk/bin> ./godot.x11.tools.64 At: servers/visual/visual_server_raster.cpp:6757.Load it in the editor and start it from there, gives out the following in the console:theuserbl@linux-faoz: At: servers/visual/rasterizer.cpp:392.Hope it helps |
Please try again with: new_wm_api <-- the wm stands for window management. Thanks for testing :) |
It also looks like, if you have compiled my master branch. |
Hmm.. now redownloaded with But the result is the same. What me wonder is: Your fork is a fork of an old godot with the old version 1.0 skin. But on your screenshots you have the new skin. |
But i think you should use git on github in the future. |
Thanks. Now all works: Ok, the OpenGL part looks different from yours. But I think that is the nouveau driver. Btw: If you have x11-development experience, could you fix the bug at |
Oh, there is NOT a driver problem in this case. |
Aaaarghh... |
were used before for fast multiscreen setup testing.
These keys were used before for fast multiscreen-testing: up = fullscreen I removed them all from the demo. Maybe the right key lets crash your computer, in the case you have an single-screen setup. |
Thanks. Now it works perfect.
No, it was more the "up" and "down". I think godot have had problems with it, that the keys are defined with two different functions: toggle fullscreen AND navigating through the buttons. Hopefully your functions will be in the near future added for Mac and Win, too. |
get_screen_size() should return a Size2 instead of Vector2 |
This is correct. Please have a look, how it is implemented on the C++ side. The listing above shows the gdscript side. |
time to implement it on windows... |
OK, This is now working on Windows and OSX! On Sun, Mar 22, 2015 at 3:11 PM, Juan Linietsky notifications@github.com
OkamStudio |
awesome =) |
This PR will add the following methods to the OS singleton like discussed in the developers mailing list:
Screen:
Window positioning and sizing:
Window states:
Compiling
scons p=x11 new_wm_api=yes
Demo
The PR also includes the window_management demo. It can be used as test case for the different x11 desktop environments and also as an implementation test for other platforms(OSX + Windows):
If some methods are not implemented, the demo will show a warning on startup:
Note
This PR will only work on the x11 platform(Linux). When you try to compile it on other platforms, compilation will stop with an error. Hopefully this will change in the future. It is just a starting point for a new wm api.
Linux/X11 folks, please test^3 it =)