aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/os_x11.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add initial support for the XDG Base Directory specRémi Verschelde2017-11-191-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html (latest as of this commit). Three virtual methods are added to OS for the various XDG paths we will use: - OS::get_data_path gives XDG_DATA_HOME, or if missing: ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_config_path gives XDG_CONFIG_HOME, or if missing: ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_cache_path gives XDG_CACHE_HOME, or if missing: ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows So for Windows there are no changes, for Linux we follow the full split spec and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot. Support for system-wide installation of templates on Unix was removed for now, as it's a bit hackish and I don't think anyone uses it. user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by default, but when using the application/config/use_shared_user_dir option it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame. For now everything still goes in EditorSettings::get_settings_dir(), but this will be changed in a later commit to make use of the new splitting where relevant. Part of #3513.
* | Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-171-1/+1
| | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-091-4/+0
| |
* | Merge pull request #12262 from AndreaCatania/pplugJuan Linietsky2017-11-031-13/+0
|\ \ | | | | | | Physics server plug
| * | Implemented physics plugAndreaCatania2017-11-041-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved init_physics Implemented physics 2D plug Fix clang Fix clang Fix static check Fix clang Fix static check Moved physics server initialization Moved physics server settings initialization
* | | Add Colemak keybindings to editor for osxN0hbdy2017-10-301-2/+2
| | |
* | | Implemented OS get_latin_keyboard_variant on x11Marcelo Fernandez2017-10-301-0/+32
| |/ |/|
* | Fix BSD compile issuesMarcelo Fernandez2017-10-171-0/+6
|/
* Use binary names instead of absolute paths in calls to OS::execute.fix/use-bin-nameJ08nY2017-10-131-5/+5
| | | | | | Now that #12009 is merged, we should let the system find the binary on the users $PATH and don't assume we know where to look for them in different distributions.
* Drop unusued LEGACYGL_ENABLED checkRémi Verschelde2017-10-131-2/+2
| | | | [ci skip]
* FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trashMarcelo Fernandez2017-09-251-0/+72
|
* Merge pull request #11141 from fcobos/x11_borderless_switch_fixRémi Verschelde2017-09-211-0/+10
|\ | | | | X11 - Adding borders back to a borderless window was not working.
| * Adding borders back to a borderless window was not working.Felix M. Cobos2017-09-121-0/+10
| |
* | Rename pos to position in user facing methods and variablesletheed2017-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* | Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-32/+1
|\ \ | | | | | | Fix crash when no audio driver is available
| * | Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-32/+1
| | |
* | | Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-151-1/+1
|\ \ \ | |/ / |/| | Fix enums bindings
| * | Fix enums bindingsMaxim Sheronov2017-09-131-1/+1
| |/ | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | Added a crash handler to dump the backtrace on Windows, Linux and OS XMarcelo Fernandez2017-09-131-0/+15
| |
* | Hint the window manager to disable desktop compositing in fullscreen mode.Felix M. Cobos2017-09-091-0/+11
|/
* Fix typos 'a' and 'an'Poommetee Ketson2017-09-021-1/+1
|
* Dead code tells no talesRémi Verschelde2017-08-271-13/+1
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Merge pull request #10591 from Rubonnek/possible-null-ptr-dereferenceRémi Verschelde2017-08-271-9/+5
|\ | | | | Added/Fixed null pointer checks
| * Added/Fixed null pointer checksWilson E. Alvarez2017-08-261-9/+5
| |
* | Fixed several memory leaksWilson E. Alvarez2017-08-251-0/+2
|/
* Merge pull request #10487 from marcelofg55/curscr_as_defaultRémi Verschelde2017-08-221-0/+11
|\ | | | | p_screen param from get_screen_* funcs now default to the current screen
| * p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-211-0/+11
| |
* | Removed unnecessary assignmentsWilson E. Alvarez2017-08-211-4/+2
|/
* Set the X11 class hint before mapping the windowRichard Adenling2017-08-191-11/+0
| | | | | | | | | | Setting the class hint before mapping the window will allow some window managers to determine if a window should be treated specially. This is also in accordance with the ICCCM spec which says that WM_CLASS should only be changed when a window is in a withdrawn (unmapped) state. Fixes #10429
* Fix double finalisation of audio driversMarcelo Fernandez2017-08-021-4/+0
|
* Fixes power management on x11 platform and removes explicit NULL pointer ↵Julian Murgia2017-07-261-0/+2
| | | | dereference.
* Workaround to allow pasting unicode characters from X selection.Jia Wang2017-07-251-2/+14
| | | | | Fixes #2491. Fixes #9787.
* -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-0/+5
| | | | -Added system for feature overrides, it's pretty cool :)
* Fix fullscreen on X11 for non-resizable windowsMarcelo Fernandez2017-07-131-0/+27
|
* IME window follow the input cursor.geequlim2017-07-111-13/+8
| | | | | Abstruct set_ime_position to OS class. Update ime position for LineEdit and TextEdit.
* Refactor 'treshold' to 'threshold'Poommetee Ketson2017-07-081-2/+2
|
* Implemented borderless window functions on Linux.Marcelo Fernandez2017-07-051-0/+26
|
* Workaround for IME and echo events on Linux:Jia Wang2017-06-291-9/+163
| | | | | Request detectable auto-repeat (Require XKB extension) to support echo events and IME at the same time. Fixes #29, #7106 and #9381.
* Revert "Workaround for IME on Linux."Juan Linietsky2017-06-251-122/+10
|
* Workaround for IME on Linux(fixes #29 #7106):Jia Wang2017-06-251-10/+122
| | | | | | | | | | Workaround for supporting input method frameworks like SCIM, IBus, Fcitx, etc. The locale is set when the application starts. Workaround for input when the input context within the specified input method is not available.
* -Restored multithread capability to VisualServerJuan Linietsky2017-06-091-4/+5
| | | | -Restored resource previews!
* InputEvent: Renamed "pos" property to "position"Andreas Haas2017-06-031-4/+4
| | | | Make the naming consistent with other classes.
* X11: Turn warning about not finding cursor theme into verbose output.Andreas Haas2017-05-291-1/+3
| | | | | | Failing to get the cursor theme should not cause any issues since we're then using the default one anyway. So I removed the warning and made it a verbose-only print instead, as people tend to mistake it for a real error.. (pretty much like `iCCP: known incorrect sRGB profile` :P)
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-64/+51
| | | | this might cause bugs I haven't found yet..
* Removal of Image from Variant, converted to a Resource.Juan Linietsky2017-05-171-7/+7
|
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-3/+3
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Revert "8145 - Mouse Position is unknown until first mouse event on X11"Juan Linietsky2017-04-061-8/+1
|
* 8145 - Mouse Position is unknown until first mouse event on X11 & WinSergey Pusnei2017-03-281-1/+8
| | | | | - X11 update input->pos on EnterNotify - X11 & Win call first-time events processing before main initialization