Commit graph

90 commits

Author SHA1 Message Date
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
Ilya Fedin
50a0e7da64 Add IsOverlapped method 2021-04-20 15:35:31 +03:00
Ilya Fedin
99089134e3 Add a method to clear transient parent 2021-04-05 10:16:46 +03:00
John Preston
52ac632bc4 Allow destroying Ui::Window on close. 2021-03-23 16:32:21 +04:00
John Preston
f6a1a44efe Fix maximize/restore button state in TitleWidget. 2021-03-20 15:16:50 +04:00
Ilya Fedin
c74cf04cc6 Get rid of deprecated ranges::view usage 2021-03-13 19:06:44 +03:00
John Preston
ad334fe450 Force all title controls on one side. 2021-03-11 19:17:01 +04:00
Ilya Fedin
fc563c0d7c Remove unneeded constexprs in ui_utility_linux 2021-03-09 09:01:12 +04:00
Ilya Fedin
b82cdd7e58 Connect to title layout changes right in TitleControlsLayout on Linux 2021-03-09 08:56:34 +04:00
Ilya Fedin
4d865f8313 Fix spaces on ends of lines 2021-03-05 13:31:38 +04:00
Ilya Fedin
af41bff7e4 Build with QT_NO_KEYWORDS 2021-03-03 22:34:02 +04:00
John Preston
794ea13f7e Fix build on Linux. 2021-03-02 17:27:58 +04:00
John Preston
84e0979f47 Fix window title update on macOS. 2021-02-26 21:16:48 +04:00
John Preston
b65ff79393 Fix window title update on theme change. 2021-02-26 18:34:44 +04:00
Ilya Fedin
ae2c25f6a2 Add Platform::IsX11 in forgotten place 2021-02-25 11:05:00 +04:00
Ilya Fedin
db65fca0aa Use new Platform::IsX11 2021-02-24 21:37:31 +04:00
Ilya Fedin
7d18c8687b Add Haiku title layout 2021-02-22 23:36:45 +04:00
Ilya Fedin
ed1bc07cc3 Add DESKTOP_APP_DISABLE_X11_INTEGRATION 2021-02-22 23:36:45 +04:00
John Preston
cf39753666 Revert "Take in account device pixel ratio when setting window extents"
This reverts commit e14bc4681d.
2021-02-21 08:03:00 +04:00
Ilya Fedin
492121950d Check if resize area is null 2021-02-19 12:37:42 +04:00
Ilya Fedin
0b74c396cb Use gtk integration from lib_base 2021-02-19 12:30:58 +04:00
Ilya Fedin
e14bc4681d Take in account device pixel ratio when setting window extents 2021-02-17 18:04:06 +04:00
Ilya Fedin
34fc25a56c Ensure controls aren't duplicated 2021-02-17 18:04:06 +04:00
Ilya Fedin
3bc42db7bc Add a private method to get control widget by enum to TitleControls 2021-02-17 18:04:06 +04:00
John Preston
77856c3a21 Fix build on Windows. 2021-02-04 18:45:35 +04:00
Ilya Fedin
6500dc9610 Qt-based title widget ported from tdesktop 2021-02-04 18:12:14 +04:00