Pāvels Nadtočajevs
ddd807ff7d
Add `(void *)` cast directly to `GetProcAddress` calls.
2025-02-27 12:30:04 +07:00
Hilderin
0c384e7217
Replace error to info messages for embedded game
2025-02-26 19:32:25 +07:00
AThousandShips
1f5f96c47f
[Windows] Fix unused variable error in `DisplayServerWindows`
2025-02-24 18:08:13 +07:00
Rémi Verschelde
b77423370a
Fix cross-platform configuration of rendering driver settings
...
Simpler alternative to #103026 which avoids breaking compatibility.
Instead of introducing a new `auto` default value, we ensure that all
supported drivers are registered regardless of the editor's host platform,
and that the defaults are the intended ones.
This solves the following issues:
- macOS exports are meant to default to Metal in 4.4, but they would
default to Vulkan if exported from Linux, Windows, or Android editors.
- Windows exports couldn't be made with Direct3D 12 from Linux, macOS, or
Android editors, as the option couldn't be selected outside Windows.
Unlike #103026 , it doesn't solve the issue of not always saving the
rendering drivers to `project.godot`, but now the defaults are at least
consistent between editor platforms.
Co-authored-by: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-02-23 12:28:59 +07:00
Rémi Verschelde
05c56e8393
Merge pull request #103052 from Hilderin/fix-embedded-game-mouse-over-not-focused-windows
...
Fix Embedded Game does not focus when mouse over on Windows
2025-02-23 12:12:47 +07:00
Hilderin
c7bc322bf6
Fix Embedded Game does not focus when mouse over on Windows
2025-02-20 16:28:18 +07:00
Thaddeus Crews
70eb62faf2
Merge pull request #103021 from Hilderin/fix-embedded-game-start-location-windows
...
Fix Embedded Game startup location on Windows
2025-02-19 16:54:09 +07:00
Thaddeus Crews
e91493fb7b
Merge pull request #102993 from bruvzg/fix_cb_win_erase
...
Prevent pending input event callbacks from erasing the window in the middle of a loop.
2025-02-18 20:47:53 +07:00
Hilderin
224d9bfe3f
Fix Embedded Game startup location on Windows
2025-02-18 19:05:15 +07:00
Pāvels Nadtočajevs
f710781b16
Prevent pending input event callbacks from erasing the window in the middle of a loop.
2025-02-18 15:26:13 +07:00
bruvzg
f86a24fcfd
[Window] Fix flashing subwindows.
2025-02-18 08:14:54 +07:00
bruvzg
3f2a29cd9d
[Windows] Read Wacom config to check if Windows Ink is disabled and auto switch to WinTab.
2025-02-13 15:10:16 +07:00
Rémi Verschelde
2fd6c635d5
Merge pull request #102744 from Hilderin/fix-floating-window-freeze-when-moving
...
Fix Game and editor freeze when clicking on the game's title bar
2025-02-12 11:21:11 +07:00
Rémi Verschelde
bd87c3a76b
Merge pull request #102247 from Hilderin/fix-embedded-game-modal-dialog
...
Fix Modal Dialog with Embedded Game
2025-02-12 11:21:01 +07:00
Hilderin
e9fef1c833
Fix Game and editor freeze when clicking on the game's title bar
2025-02-11 21:41:03 +07:00
Hilderin
a9e06b8f64
Fix Modal Dialog with Embedded Game
2025-02-05 21:14:34 +07:00
Hilderin
a3d03717c0
Fix Floating Window request close when a dialog is opened
2025-02-05 20:34:32 +07:00
Thaddeus Crews
ca3e268dfe
Merge pull request #101754 from bruvzg/vk_oem_only
...
[Windows] Override key codes with Unicode values for OEM keys only.
2025-02-05 10:27:16 +07:00
Adam Scott
47f553ae0b
Delegate to the DisplayServer the task of handling mouse_mode
...
- Add `MOUSE_MODE_MAX` and various index checks
2025-01-28 11:22:27 +07:00
Hilderin
9eed43d429
Fix NOTIFICATION_WM_CLOSE_REQUEST in Embedded Floating Window
2025-01-21 21:03:15 +07:00
Thaddeus Crews
8cf94c8de5
Merge pull request #101763 from SupSuper/patch-1
...
[Windows] Fix left/right Shift key regression
2025-01-21 11:55:21 +07:00
Daniel
17423e9899
[Windows] Fix left/right Shift key regression
...
Fixes #101384 by checking the latest state of the Shift keys before sending the KEYUP event.
2025-01-20 23:02:58 +07:00
bruvzg
d65c07da4c
[Windows] Override key codes with Unicode values for OEM keys only.
2025-01-18 14:56:18 +07:00
bruvzg
7c50a7822e
[Windows] Make native dialogs non-cancelable and stay on top of parent.
2025-01-17 17:44:34 +07:00
Pāvels Nadtočajevs
2e99d84e87
[DisplayServer] Add missing `FEATURE_WINDOW_DRAG` flag to Windows, X11 and Wayland display servers.
2025-01-14 15:26:32 +07:00
Pāvels Nadtočajevs
b252867145
[macOS/Windows] Add `Emoji & Symbols` context menu item to LineEdit/TextEdit to show system character picker.
2025-01-10 09:25:34 +07:00
Rémi Verschelde
65cf7c1d5e
Merge pull request #101221 from bruvzg/win_dec_exp
...
[Window] Expose `start_drag` and `start_resize` methods (for both native and embedded windows).
2025-01-09 11:17:24 +07:00
WhalesState
989161e117
Fix color picking on linux.
2025-01-08 10:32:25 +07:00
Pāvels Nadtočajevs
8d911b2554
[Window] Expose `start_drag` and `start_resize` methods (for both native and embedded windows).
2025-01-07 23:35:14 +07:00
Pāvels Nadtočajevs
7f0b4e58b0
Implement `DisplayServer.window_start_resize`.
2025-01-07 07:58:02 +07:00
Rémi Verschelde
bd56e811f3
Merge pull request #101015 from bruvzg/si_fix_empty_tt
...
[Windows] Fix StatusIndicator crash with empty tooltip (and few other similar unsafe `ptr()` uses).
2025-01-07 00:45:11 +07:00
Rémi Verschelde
cc32e46360
Merge pull request #101135 from Hilderin/fix-embedding-not-working-intermittently
...
Fix embedding failing intermittently
2025-01-06 22:49:05 +07:00
Rémi Verschelde
881d4bd9ee
Merge pull request #100960 from buresu/fix-windows-keymapping
...
Fix incorrect Unicode key mapping on Windows
2025-01-06 22:48:09 +07:00
Hilderin
2f061df7b0
Fix embedding not working intermittently
2025-01-06 08:04:57 +07:00
Pāvels Nadtočajevs
e1f129cb52
Support MIME types in file dialog filters on macOS and Linux.
2025-01-04 22:05:35 +07:00
bruvzg
663b90da61
[Windows] Fix StatusIndicator crash with empty tooltip (and few other similar unsafe `ptr()` uses).
2025-01-02 10:07:02 +07:00
Naoto Kondo
8c7319459b
Fix incorrect Unicode key mapping on Windows
2025-01-02 04:31:49 +07:00
Hilderin
9d2a4c03be
Embedding game process in editor
2024-12-18 17:52:42 +07:00
Pāvels Nadtočajevs
293be04ec8
Implement `window_start_drag` on Windows and Linux.
2024-12-17 16:49:27 +07:00
Hugo Locurcio
928982891e
Add `OS.get_version_alias()` to return a human-readable Windows/macOS version number
...
Windows 11's major version number is actually 10.x.x, which can be confusing
if you don't know about this quirk. `OS.get_version_alias()` avoids this
by displaying the "branding" version number and the build number as a suffix,
so that individual updates can still be distinguished from each other.
On macOS, `OS.get_version_alias()` returns the version number prepended
with the version name (e.g. Sequoia for macOS 15).
On other operating systems, this returns the same value as `OS.get_version()`.
2024-12-14 18:47:50 +07:00
Thaddeus Crews
4a1a7addd1
Merge pull request #100179 from zaevi/fix_transient_topmost
...
[Windows & macOS] Fix popup window shows behind `always_on_top` parent.
2024-12-11 17:35:53 +07:00
bruvzg
9fece033ab
[macOS, Windows] Add support for excluding windows from a screenshot.
2024-12-10 11:00:13 +07:00
Zae
2211b1bf91
Fix popup shows behind always_on_top parent.
2024-12-10 01:35:25 +07:00
Hilderin
a80eb8c503
Fix Inspector tooltips are blinking
2024-12-03 17:25:36 +07:00
Pāvels Nadtočajevs
84650f2018
Implement `DisplayServer.beep`.
2024-12-03 12:43:26 +07:00
Rémi Verschelde
aab12fd273
Merge pull request #99652 from bruvzg/fd_cd_win
...
[Windows] Fix root and current folder in native file dialog.
2024-12-02 17:20:27 +07:00
Rémi Verschelde
60e1490df1
Merge pull request #99644 from bruvzg/fd_all_name
...
Change file dialog all files filter name from `All Files (*)` to `All Files (*.*)`.
2024-12-02 17:20:23 +07:00
Rémi Verschelde
47f71f66c1
Merge pull request #98631 from bruvzg/fix_fs_restore
...
[Windows] Fix restoring fullscreen window.
2024-12-02 17:20:02 +07:00
Rémi Verschelde
57e504ca42
Merge pull request #98582 from bruvzg/win_btn_count
...
Remove button number limit from Windows `dialog_show()` implementation.
2024-12-02 17:19:52 +07:00
Hei
b045523d58
Add the missing getter for sharp window corners
2024-11-30 19:24:25 +07:00
Thaddeus Crews
127738c08b
Merge pull request #99387 from 0x0ACB/direct_composition
...
Use direct composition for d3d12 backend
2024-11-26 13:04:53 +07:00
0x0ACB
a8cd0e9677
Use direct composition for d3d12 backend
2024-11-26 10:28:40 +07:00
bruvzg
e0b4f3d314
[Windows] Fix root and current folder in native file dialog.
...
Co-authored-by: RedMser <redmser.jj2@gmail.com>
2024-11-25 15:00:25 +07:00
Pāvels Nadtočajevs
1d43fa9a64
Change file dialog all files filter name from `All Files (*)` to `All Files(*.*)`.
2024-11-24 20:09:05 +07:00
bruvzg
24d51f7635
[Windows] Fix TTS events arriving out of order.
2024-11-22 11:10:37 +07:00
Pāvels Nadtočajevs
f5fad7592f
Use processed filter list for native dialogs.
2024-11-15 12:08:33 +07:00
Thaddeus Crews
ddb2073c5c
Merge pull request #95972 from Hilderin/fix-mouse-move-over-unfocused-window
...
Fix mouse move over an unfocused window
2024-11-13 08:34:30 +07:00
bruvzg
fdde7713a8
Fix IME deactivation events not send on focus loss. Do not unset AltGr modifiers in non-IME input.
2024-11-06 09:47:26 +07:00
Thaddeus Crews
6071c7cd3b
Merge pull request #97250 from Garetonchick/windows-drag-and-drop-fix
...
Windows: Fix dragging and dropping files from compressed files into editor
2024-11-05 18:36:07 +07:00
Thaddeus Crews
bb5f390fb9
Style: Apply `clang-tidy` fixes (superficial)
...
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 +07:00
Anish Mishra
0dfd18c84b
[DisplayServer] Add feature flag for native file dialog access to `user/res` and `options`
2024-10-30 14:13:43 +07:00
Thaddeus Crews
05a4620e88
Merge pull request #98615 from Summersay415/three-opengls-please
...
Fix fallbacks to OpenGL
2024-10-29 19:25:48 +07:00
Thaddeus Crews
b7a0971ad2
Merge pull request #97934 from adamscott/give-AThousandShips-a-break
...
[Codestyle] Set clang-format `RemoveSemicolon` rule to `true`
2024-10-29 19:25:36 +07:00
bruvzg
bf9f78c353
[Windows] Fix restoreing fullscreen window.
2024-10-29 09:32:49 +07:00
Summersay415
6d14cd6ff9
Fix fallbacks to OpenGL
2024-10-28 22:57:19 +07:00
bruvzg
335b42d437
Remove button number limit from Windows dialog_show() implementation.
2024-10-27 16:54:03 +07:00
Thaddeus Crews
07e759b74a
Merge pull request #97771 from dsnopek/openxr-linux-egl
...
OpenXR: Add support for Wayland on Linux
2024-10-25 13:04:08 +07:00
Adam Scott
0d350e7108
Set clang-format `RemoveSemicolon` rule to `true`
...
- Set clang-format `Standard` rule to `c++20`
2024-10-25 13:49:43 +07:00
Garetonchick
2bd759964e
fix drag-and-drop in windows
2024-10-24 19:43:30 +07:00
dan
403e53e1d3
Fix window exiting with no message to user if _create_window fails
2024-10-21 17:31:30 +07:00
Thaddeus Crews
f8c4a683d7
Core: Add `DisplayServer` flag for sharp corners
2024-10-18 11:20:21 +07:00
David Snopek
256699ee31
OpenXR: Add support for Wayland on Linux
2024-10-04 11:44:05 +07:00
Rémi Verschelde
36837bfb5d
Merge pull request #91487 from shatyuka/window-style
...
Apply `WS_MINIMIZE` style on window creation
2024-10-04 12:58:34 +07:00
bruvzg
d2f3725120
Fix window_set_current_screen for maximized windows.
2024-10-03 10:38:32 +07:00
Thaddeus Crews
32c83a228d
Style: Add `WARNING:` as new comment admonition
2024-09-25 09:44:42 +07:00
Rémi Verschelde
c2564f42aa
Merge pull request #97142 from SheepYhangCN/master
...
Fallback to OpenGL 3 if other rendering drivers are not supported
2024-09-20 16:06:35 +07:00
Thaddeus Crews
b37fc1014a
Style: Apply new `clang-format` changes
2024-09-20 08:09:48 +07:00
SheepYhangCN
3b839347df
Added fallback_to_opengl3
2024-09-20 06:10:05 +07:00
Rémi Verschelde
3cc99d3e31
Merge pull request #95983 from bruvzg/win_fd_opt_fix
...
[Windows] Emit native file dialog callback from event loop, fix selected options not saved.
2024-09-04 17:11:57 +07:00
bruvzg
c273786758
Update rendering driver name on fallbacks. Fix rendering driver/method in the editor system info.
2024-09-01 18:22:40 +07:00
bruvzg
ae334e069c
[Windows] Always use absolute UNC paths and long path aware APIs, add "long path aware" flag to the application manifest.
2024-08-28 11:15:57 +07:00
bruvzg
9a2977fef1
[Windows] Hide cursor before moving.
2024-08-27 08:44:05 +07:00
bruvzg
f8a6c0e8ab
Enable fallback from ANGLE to native and improve ANGLE error messages.
2024-08-25 21:19:54 +07:00
bruvzg
ea252675aa
[Windows] Emit native file dialog callback from event loop, fix selected options not saved.
2024-08-23 09:53:16 +07:00
Hilderin
6cbadcf606
Fix mouse move over an unfocused window
2024-08-22 21:36:01 +07:00
Rémi Verschelde
100fbb51ab
Merge pull request #95665 from Hilderin/fix-drag-drop-between-window
...
Fix drag&drop between window on Windows
2024-08-22 00:10:35 +07:00
bruvzg
66832e9968
[Windows] Run native file dialogs in thread to make it non-blocking.
2024-08-19 12:58:16 +07:00
Hilderin
0987a9dc06
Fix drag&drop between window on Windows
2024-08-16 18:40:46 +07:00
Rémi Verschelde
b084b6a8bb
Merge pull request #94971 from bruvzg/drv_msgs
...
[Windows] Improve video driver error messages.
2024-08-16 14:32:50 +07:00
Hilderin
59149dc4d0
Fix unfocused windows can't be dragged
2024-08-15 23:08:02 +07:00
Alvin Wong
16a563b9ac
DisplayServerWindows: Fix logic when creating with transient parent
2024-08-15 04:10:15 +07:00
Rémi Verschelde
e693ff814a
Merge pull request #95155 from bruvzg/win_pen_checks
...
[Windows] Reject `WM_POINTER(UP/DOWN)` messages for non pen pointer type.
2024-08-06 12:32:02 +07:00
bruvzg
e5efde9481
[Windows] Reject WM_POINTER(UP/DOWN) messages for non pen pointer type.
2024-08-04 20:07:14 +07:00
bruvzg
27474c9563
[Windows] Check if transparency is enabled in the project setting before applying DWM blur.
2024-08-01 10:30:46 +07:00
Rémi Verschelde
1d57b81d26
Merge pull request #94976 from bruvzg/win_app_name
...
[Windows] Improve editor grouping, set friendly name registry key for exported projects.
2024-07-31 16:13:21 +07:00
bruvzg
3f8cc6678b
[Windows] Improve editor grouping, set friendly name registry key for exported projects.
2024-07-31 15:04:00 +07:00
Rémi Verschelde
3fce516155
Merge pull request #94428 from alvinhochun/windows-angle-resize-sync
...
Windows: Update ANGLE surface size when window is resized
2024-07-31 11:37:37 +07:00
bruvzg
68ae413893
[Windows] Improve video driver error messages.
2024-07-31 11:16:38 +07:00
bruvzg
ad0ab2f396
[Windows] Improve OpenGL/ANGLE switching on ARM64.
2024-07-30 10:11:58 +07:00
Rémi Verschelde
9a8f18b9bf
Merge pull request #94796 from kus04e4ek/backfall
...
Windows: Fall back to D3D12 if Vulkan is not supported and vice versa
2024-07-29 15:17:26 +07:00