summaryrefslogtreecommitdiff
path: root/platform/windows/display_server_windows.cpp
AgeCommit message (Collapse)Author
2023-02-22[Windows] Take initial flags into account when creating main window.bruvzg
2023-02-17Fix crash with bogus shape index to DisplayServer.cursor_set_custom_image()Rémi Verschelde
Fixes #66605.
2023-02-14[InputEventKey] Avoid setting both key and modifier to the same value.bruvzg
2023-02-03Merge pull request #72624 from pkdawson/fix-last-focusRémi Verschelde
DisplayServerWindows: Update `last_focused_window` when the focused subwindow is deleted
2023-02-02Fix windowsize for fullscreen windows on windowcreation on WindowsMarkus Sauermann
Fortunately the location in the codebase was easy to find because there was a FIXME comment.
2023-02-02DisplayServerWindows: Update `last_focused_window` when the focused ↵Patrick Dawson
subwindow is deleted
2023-02-01Merge pull request #72104 from bruvzg/popup-non-popupsRémi Verschelde
Extend special popup window handling to any non-popup child of a popup.
2023-01-31Merge pull request #71174 from RedMser/fix-confined-mouse-mode-updateRémi Verschelde
Fix confined mouse mode not updating on resize
2023-01-30Refactor high quality texture importJuan Linietsky
* Only two texture import modes for low/high quality now: * S3TC/BPTC * ETC2/ASTC * Makes sense given this is the general preferred and most compatible combination in most platforms. * Removed lossy_quality from VRAM texture compression options. It was unused everywhere. * Added a new "high_quality" option to texture import. When enabled, it uses BPTC/ASTC (BC7/ASTC4x4) instead of S3TC/ETC2 (DXT1-5/ETC2,ETCA). * Changed MacOS export settings so required texture formats depend on the architecture selected. This solves the following problems: * Makes it simpler to import textures as high quality, without having to worry about the specific format used. * As the editor can now run on platforms such as web, Mac OS with Apple Silicion and Android, it should no longer be assumed that S3TC/BPTC is available by default for it.
2023-01-26Extend special popup window handling to any non-popup child of a popup.bruvzg
2023-01-26[Windows] Fix committing IME text without IME deactivation.bruvzg
2023-01-25[Windows] Fix candidate window position with some third party IME engines.bruvzg
2023-01-25[Windows] Fix ToUnicodeEx resetting some dead key states.bruvzg
2023-01-23Cleanup and unify keyboard input.bruvzg
- Unify keycode values (secondary label printed on a key), remove unused hardcoded Latin-1 codes. - Unify IME behaviour, add inline composition string display on Windows and X11. - Add key_label (localized label printed on a key) value to the key events, and allow mapping actions to the unshifted Unicode events. - Add support for physical keyboard (Bluetooth or Sidecar) handling on iOS. - Add support for media key handling on macOS. Co-authored-by: Raul Santos <raulsntos@gmail.com>
2023-01-20Fix AltGR getting stuck on Windows right alt-tabJuan Linietsky
Fixes #28511.
2023-01-19[Windows] Fix sub-window initial transparency and always-on-top state.bruvzg
2023-01-17Improve DisplayServer message for video card drivers failureRémi Verschelde
And remove leftover duplicated message on Android.
2023-01-16Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips. Expose ↵bruvzg
`window_set_mouse_passthrough` to `Window`.
2023-01-16[Windows] Fix incorrect full-screen mode applied on start.bruvzg
2023-01-12Implement color flash avoidance for WindowsPedro J. Estébanez
2023-01-10Fix confined mouse mode not updating on resizeRedMser
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-07[Windows] Fix primary screen detection.bruvzg
2023-01-07Add support for the custom initial screen for the main window, fix primary ↵bruvzg
screen detection.
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03Merge pull request #70624 from bruvzg/cur_scRémi Verschelde
Improve `window_set_current_screen` and fix secondary window initial mode and positions.
2022-12-29Improve `window_set_current_screen` and fix secondary window initial mode ↵bruvzg
and positions.
2022-12-27Fix dark title barfloppyhammer
2022-12-07Merge pull request #69712 from bruvzg/real_sizeRémi Verschelde
Rename `window_get_real_size`, add position counterpart.
2022-12-07Rename `window_get_real_size` to `window_get_size_with_decorations`, add ↵bruvzg
`window_get_position_with_decorations`.
2022-12-06[Windows] Window management fixes.bruvzg
Fix popup menus having incorrect scale when main window is in full-screen mode and multiple monitors with different DPI are used. Prevent mouse move code from accessing deleted window data (and creating zombie records in the windows map).
2022-11-30Fix incorrect mouse event position while hovering different windowMarkus Sauermann
2022-11-28[Windows] Fix joypad crashPatrick Dawson
2022-11-15Set vsync on window creation when using GLES3.clayjohn
Add vsync to Windows platform
2022-11-14Fix ICONDIR buffer overflowPatrick Dawson
2022-11-13Added missing null checks for gl_manager in MacOS and Windows display serversDavid Snopek
2022-11-08Add support for OpenGL to OpenXRDavid Snopek
2022-11-01Fix mouseleave event after drag and drop in different WindowsMarkus Sauermann
When dropping in a different window, it is necessary to start tracking the WM_MOUSELEAVE event again.
2022-11-01Fix mouse offset for unfocused popupsMarkus Sauermann
On Windows, the mouse was offset, when unfocused popups were used, like the Editor menu.
2022-10-28Merge pull request #67790 from kdada/fix-flash-windowClay John
Make creating window do not flicker when specify custom position
2022-10-28Fix differences between Windows and linuxbsd Display ServerMarkus Sauermann
Fix that Windows receive WINDOW_EVENT_MOUSE_EXIT on startup. When moving the mouse cursor from one window to a different one, make sure that the first window receives the WINDOW_EVENT_MOUSE_EXIT event before the second window receives the WINDOW_EVENT_MOUSE_ENTER event. Send Mouse-Move events also for Windows, that are currently not focused. For determining the currently hovered window, consider not just the currently focused window, but also other windows. Send mouse move events to focused window instead of hovered window.
2022-10-24Make window creation with custom position do not flashWei Guo
2022-10-21Merge pull request #67546 from clayjohn/DS-msgClay John
Update the DisplayServer video driver error message to be more accurate and friendly
2022-10-18Update the DisplayServer video driver error messageclayjohn
to be more accurate and friendly
2022-10-17Check if Vulkan context for the window exists before resizing it to avoid ↵bruvzg
unnecessary error messages.
2022-10-10SCons: Re-enable treating `#warning` as error with `werror`Rémi Verschelde
Replace all TODO uses of `#warning` by proper TODO comments, and will open matching bug reports to keep track of them. We don't have a great track record fixing TODOs, but I'd wager we're even worse for fixing these "TODO #warning" so we should prohibit this usage.
2022-10-07Harmonize return values of window_create() in rendering driversPedro J. Estébanez
2022-10-06[Windows] Fix LLVM MinGW build.bruvzg
2022-09-29Fix ScrollContainer touch-scrolling not working.Zae
2022-09-28[Windows] Ignore excessive wintab mouse move events.bruvzg