23rd
7bd7ada3ff
Split qt_adapters to separated files.
2022-01-24 19:29:36 +03:00
John Preston
f0efb19713
Fix a crash on Windows < 11.
2022-01-19 09:30:40 +03:00
John Preston
45a8095aee
Fix build with Xcode.
2022-01-18 21:52:04 +03:00
John Preston
47aed59fe9
Add Windows 11 snap layouts to custom TitleControls.
2022-01-18 18:37:35 +03:00
John Preston
d5d2ccb467
Disable Windows 11 rounded corners in FullScreen RpWindow.
2022-01-18 15:52:27 +03:00
John Preston
e5c8a6ebc4
Force correct separate title bar controls geometry.
2022-01-18 15:33:28 +03:00
John Preston
d7e47aa8a6
Support Windows 11 snap layouts in RpWindow title controls.
2022-01-18 12:59:37 +03:00
John Preston
79d2052a83
Use default font in window title on macOS.
2022-01-17 15:04:39 +03:00
John Preston
220d683528
Fix Windows 11 title controls by additional padding.
2022-01-17 13:37:14 +03:00
John Preston
eaea768ca0
Fix HWND retrieval on Windows.
2021-12-22 10:23:07 +00:00
Ilya Fedin
5195b7b45f
Use XCB instead of QPlatformNativeInterface to get state of translucent windows support
2021-12-14 09:52:19 +04:00
Ilya Fedin
692fd7a3a2
Use generic XCB::GetRootWindow instead of QPlatformNativeInterface-based GetRootWindowFromQt
2021-12-14 09:52:19 +04:00
Ilya Fedin
9c7fe32830
Use winId to get window handle on Windows
...
There's no need to call QPlatformNativeInterface for that
2021-12-14 09:52:19 +04:00
John Preston
d9953c29b8
Don't set window border color on Windows 11.
...
When set it can only be opaque which doesn't look great.
When left default it is made of a semi-transparent shadow color.
2021-11-01 15:02:21 +04:00
23rd
cc79439fee
Fixed RpWindow dragging on macOS with Qt 6.2.
2021-10-31 08:58:44 +03:00
John Preston
7b4114d907
Fix RpWindow drag-by-title on macOS with Qt 6.2.
2021-10-26 19:32:24 +04:00
Ilya Fedin
9e4ffb81a5
Re-enable kwayland with Qt 6
2021-10-25 08:49:29 +04:00
John Preston
674391524b
Fix build with Qt 6.2 on macOS.
2021-10-21 19:45:01 +04:00
Ilya Fedin
87b121069f
Add checks for libraries not ported to Qt 6 yet
2021-10-21 08:42:53 +04:00
Ilya Fedin
64e40913df
Use new Qt 6 adapters
2021-10-19 19:28:45 +04:00
Ilya Fedin
8e5d35229a
Simple replacements for Qt 6
...
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
John Preston
a827d9436e
Use native rounded corners and title colors.
2021-09-28 21:06:29 +04:00
John Preston
2d53ef070f
Allow to query RpWindow-s frame margins.
2021-09-16 10:26:34 +03:00
Ilya Fedin
15d1560e41
Move glibmm_helper include to others glib-related
2021-09-12 00:04:49 +03:00
Ilya Fedin
af1429cb87
Use XSettings + XDP instead of gtk for title controls layout
2021-09-05 17:40:34 +03:00
John Preston
ea570c07b6
Attempt to fix a crash in event loop nesting tracking.
2021-09-01 19:08:07 +03:00
John Preston
024f6fc1a9
Fix window frame glitches on Windows 7.
2021-08-10 15:04:30 +03:00
John Preston
5c0066958b
Fix window shadow after native frame switch.
2021-08-10 13:12:21 +03:00
kvtb
7f15ac5f0e
fix compiling tdesktop with -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=ON
2021-08-09 12:24:12 +03:00
Ilya Fedin
98c7979e67
Get rid of _nativeFrame variable, _title->isHidden is enough
2021-08-08 09:18:15 +03:00
Ilya Fedin
381bfc43c5
Subscribe window widget resize to window state changes
2021-08-08 09:18:15 +03:00
Ilya Fedin
3f85ce53d6
Fix titlebar position when switching to custom frame
2021-07-30 17:29:45 +03:00
John Preston
868f2671fa
Fix Ui::RpWidget geometry constraints.
2021-07-29 18:12:44 +03:00
John Preston
d452ae8ba6
Rename Ui::Window to Ui::RpWindow.
2021-07-28 16:23:27 +03:00
Ilya Fedin
7a71876124
Add possibility to enable native window frame to Ui::Window
2021-07-28 16:06:17 +03:00
Ilya Fedin
95cafc5064
Fix cursor with custom titlebar on Linux
2021-07-27 10:53:20 +03:00
John Preston
8de7b873f9
Remove 'osx' special target code.
2021-07-23 18:52:15 +03:00
Ilya Fedin
b8485c0d8a
Fix -Wunused-variable warnings
2021-07-13 21:24:22 +03:00
John Preston
3a51a253cd
Use updated SafeLoadLibrary from lib_base.
2021-07-01 00:12:52 +03:00
John Preston
a009efc50d
Fix expose bug for frameless OpenGL window.
2021-06-23 15:42:38 +04:00
John Preston
f646439624
Fix full screen OpenGL native child window.
2021-06-21 11:28:53 +04:00
Ilya Fedin
b600b6a3b3
Move custom xdg-shell integration code to wayland integration
2021-06-12 15:51:04 +04:00
Ilya Fedin
43efd9e307
Use custom xdg-shell for shadows on Wayland
2021-06-10 23:39:38 +04:00
John Preston
1c004580eb
Fix stay-on-top Ui::Window-s on macOS.
2021-06-08 17:11:02 +04:00
Ilya Fedin
cedff6dbb5
Use new XCB::ReplyPointer
2021-05-31 22:51:23 +03:00
John Preston
e9fcbfcbac
Remove 'StartTranslucentPaint'.
2021-05-18 17:04:45 +04:00
John Preston
aeeb13bd02
Send QCloseEvent to custom-closed Ui::Window-s.
2021-05-17 15:19:43 +04:00
John Preston
b486260559
Don't change cursor in fixed-size windows.
2021-05-10 16:12:42 +04:00
John Preston
eb768c8c4b
Add IsOverlapped implementation for macOS.
2021-04-20 16:47:09 +04:00
John Preston
d07bee87cd
Use LOG/DEBUG_LOG from lib_base.
2021-04-20 16:39:27 +04:00