summaryrefslogtreecommitdiffstats
path: root/scene/main/window.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@6c05ec3d6732cac44cf85c91db7d3fd1075bcb23Spartan3222024-11-151-0/+5
|\
| * Fix missing native file dialog title translation.Pāvels Nadtočajevs2024-11-141-0/+5
| |
* | Merge commit godotengine/godot@0f5f3bc9546b46b2029fc8896dc859697f1eab97Spartan3222024-11-111-31/+0
|\|
| * [Debugger] Move quit shortcut configuration to the SceneDebuggerFabio Alessandrelli2024-11-071-31/+0
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-3/+17
|\|
| * Merge pull request #97005 from Repiteo/core/window-corner-styleThaddeus Crews2024-10-211-0/+2
| |\ | | | | | | | | | Core: Add `DisplayServer` flag for sharp corners
| | * Core: Add `DisplayServer` flag for sharp cornersThaddeus Crews2024-10-181-0/+2
| | |
| * | Add System Locale layout direction for Control and WindowHaoyu Qiu2024-10-171-3/+15
| |/
* / Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Enable Drag and Drop for SubViewports and WindowsMarkus Sauermann2024-09-151-4/+8
| | | | | | | | | | | | | | | Make Drag and Drop an application-wide operation. This allows do drop on Controls in other Viewports/Windows. In order to achieve this, `Viewport::_update_mouse_over` is adjusted to remember the Control, that the mouse is over (possibly within nested viewports). This Control is used as a basis for the Drop-operation, which replaces the previous algorithm, which was only aware of the topmost Viewport. Also now all nodes in the SceneTree are notified about the Drag and Drop operation, with the exception of SubViewports that are not children of SubViewportContainers.
* Merge pull request #96708 from bruvzg/lbl3d_osRémi Verschelde2024-09-121-0/+1
|\ | | | | | | [Label3D] Fix updating labels in subvieports on oversampling change.
| * [Label3D] Fix updating labels in subvieports on oversampling change.bruvzg2024-09-081-0/+1
| |
* | StringName: Fix empty hashrune-scape2024-09-091-1/+0
|/ | | | +Fixed compat hashes
* Merge pull request #93602 from aaronp64/inspector_latencyRémi Verschelde2024-08-221-24/+24
|\ | | | | | | Improve Editor Inspector/Theme item lookup performance
| * Improve Editor Inspector/Theme item lookup performanceaaronp642024-08-201-24/+24
| | | | | | | | | | | | | | | | | | | | | | Changes to reduce the latency between changing node selection in the editor and seeing the new node reflected in the Inspector tab - Use Vector instead of List for ThemeOwner::get_theme_type_dependencies and related functions - Use Vector instead of List for ThemeContext::themes, set_themes(), and get_themes() - Add ClassDB:get_inheritance_chain_nocheck to get all parent/ancestor classes at once, to avoid repeated ClassDB locking overhead - Update BIND_THEME_ITEM macros and ThemeDB::update_class_instance_items to use provided StringNames for call to ThemeItemSetter, instead of creating a new StringName in each call These changes reduce the time taken by EditorInspector::update_tree by around 30-35%
* | Fix Window.wrap_controls does not account for the content_scale_factorDE-YU2024-08-191-1/+1
| |
* | Split TranslationServer into its own fileHaoyu Qiu2024-08-151-1/+1
| |
* | Fix update mouse cursor state wrong mouse positionkit2024-07-311-1/+1
| |
* | Pass window exclusive and transient properties for subwindow creationAlvin Wong2024-07-251-11/+1
|/ | | | | | On Windows this allows to avoid having to change the owner of the window after it has been created, which in rare circumstances may cause the window to bug out.
* [Window] Ignore duplicate mouse enter events.bruvzg2024-06-121-0/+3
|
* [Window] Fix mouse hover state of the main window when mouse enter event was ↵bruvzg2024-06-101-0/+4
| | | | sent before setting callbacks.
* Fix excessive canvas items updates.bruvzg2024-06-051-5/+3
|
* Force canvas item update on oversampling change.bruvzg2024-06-031-3/+8
|
* Update editor `Window` preview position when resizing window.bruvzg2024-05-311-0/+1
|
* Merge pull request #92317 from bruvzg/emb_decorationsRémi Verschelde2024-05-301-0/+20
|\ | | | | | | Fix `get_position_with_decorations` and `get_size_with_decorations` for embedded windows.
| * Fix `get_position_with_decorations` and `get_size_with_decorations` for ↵bruvzg2024-05-241-0/+20
| | | | | | | | embedded windows.
* | Fix Window position preview in the editor.bruvzg2024-05-291-2/+33
|/
* Use Core/Scene stringnames consistentlykobewi2024-05-131-3/+2
|
* Add shorthand for using singleton string nameskobewi2024-05-111-6/+6
|
* [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-2/+2
| | | | Convenience for a number of cases operating on single values
* Merge pull request #90268 from RandomShaper/wtp_serversRémi Verschelde2024-04-151-0/+1
|\ | | | | Use WorkerThreadPool for Server threads (enhanced)
| * Polish interaction between windowing, input and renderingPedro J. Estébanez2024-04-101-0/+1
| | | | | | | | | | - Adapt GL make/release API to the current architecture. - Fix DisplayServer being locked while dispatching input (prevent deadlocks).
* | Fix Window.hide() crash when force_native changedaaronp642024-04-131-2/+2
|/ | | | | | Moved force_native = p_force_native assignment to after is_visible() check, to prevent value from changing after window is shown. Fixes #90609
* Prohibit execution of delayed input events by different meansMarkus Sauermann2024-03-271-3/+3
| | | | | | | | | | | | | | | In some cases it can happen, that the order of input events and window events is not followed, when input buffering or input accumulation is active. The display server order `InputEvent` => window-event gets changed to window-event => `InputEvent` which becomes problematic in certain situations. This PR makes sure, that the order is adhered to by flushing input events before a window event is sent. Previously this problem was mitigated by discarding these delayed events. But this solution was problematic in the setting of android input events.
* Merge pull request #89673 from bruvzg/f_na_edRémi Verschelde2024-03-251-2/+2
|\ | | | | | | Do not apply `force_native` to the edited scene windows.
| * Do not apply "force_native" to the edited scene windows.bruvzg2024-03-191-2/+2
| |
* | Use `Vector*` component-wise `min/max/clamp` functions where applicableA Thousand Ships2024-03-201-5/+3
|/
* [Window] Allow to override viewport and project settings and force use of ↵bruvzg2024-03-041-0/+22
| | | | native window.
* Merge pull request #84906 from /fix-some-defvalsRémi Verschelde2024-02-231-12/+13
|\
| * Fix some DEFVALs to use the right typeRaul Santos2024-02-231-12/+13
| | | | | | | | | | - Use `StringName()` in DEFVAL for StringNames. - Use `Variant()` in DEFVAL for Variants.
* | Revert "Fix `NOTIFICATION_WM_SIZE_CHANGED` firing if the size hasn't changed"Michael Alexsander2024-02-211-4/+1
|/ | | | | This reverts commit 957378a69eb4dbd0066f91a9f4e44dc02cd360bd, reversing changes made to 0d88840e81596e8378f8cc444c6fcb61cfa676d0.
* Merge pull request #79617 from sepTN/add-screensize-check-popupRémi Verschelde2024-02-191-1/+4
|\ | | | | | | Add size check to prevent popup bigger than the screen itself
| * Add screen size check on `popup`Septian2024-02-191-1/+4
| |
* | Make auto translation inheritableMichael Alexsander2024-02-151-21/+11
| |
* | Automatically set viewport background to transparent when window flag is set.bruvzg2024-02-021-1/+7
| |
* | Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-13/+13
| |
* | Merge pull request #86446 from reduz/transient-to-focusedRémi Verschelde2024-01-151-12/+50
|\ \ | | | | | | | | | Implement a `transient_to_focused` Window mode
| * | Implement a transient_to_focused modeJuan Linietsky2024-01-141-12/+50
| | | | | | | | | | | | | | | | | | | | | This intends to be the correct way to handle non-child windows becoming covered by the current window when becoming focused. Enabling this property on select windows, they will become transient to the currently focused one when becoming visible. This deprecates the "unparent_when_invisible" function introduced by #76025.
* | | Add deprecation notice to a duplicate method of class `Window`Jakub Marcowski2024-01-121-7/+6
| | |