Commit graph

34 commits

Author SHA1 Message Date
Ilya Fedin
180b0bc517 Apply window extents early to avoid window size changes 2022-08-14 09:22:03 +04:00
Ilya Fedin
db2638cf60 Fix painting of bottom left shadow corner 2022-06-25 07:12:42 +04:00
Ilya Fedin
c499a437f8 Fix a crash while updating window extents 2022-06-24 20:59:03 +04:00
John Preston
f40dc661b3 Revert "Simplify Windows native event filter."
With that commit the window frame on Windows 7 is still bugged :(
2022-06-24 20:40:23 +04:00
Ilya Fedin
8e5c8c96bd Fix a crash while setting FramelessWindowHint 2022-06-23 03:46:20 +04:00
Ilya Fedin
941dc48366 Change FramelessWindowHint not only when the window is shown 2022-06-22 10:48:59 +04:00
Ilya Fedin
ce35425670 Simplify Windows native event filter
There's no need for a global event filter as it checks for the window hwnd anyway. And, moreover, that creates problems as Qt filters some events to global event filters.
2022-06-13 14:04:17 +04:00
Ilya Fedin
a714fb0070 Refactor all ui_platform_utility functions to accept QWidget
Also let ShowWindowMenu accept the point and remove unused return data
2022-06-13 14:04:17 +04:00
Ilya Fedin
94c5754b42 Hide titlebar & border when there are no controls
If the user doesn't want to control the window with buttons, then he moves/resizes the window in other way as well
2022-06-13 13:47:26 +04:00
Ilya Fedin
8e35ae4407 Implement round window with Qt-based custom decorations 2022-06-07 18:45:25 +04:00
John Preston
47aed59fe9 Add Windows 11 snap layouts to custom TitleControls. 2022-01-18 18:37:35 +03:00
John Preston
e5c8a6ebc4 Force correct separate title bar controls geometry. 2022-01-18 15:33:28 +03:00
John Preston
7b4114d907 Fix RpWindow drag-by-title on macOS with Qt 6.2. 2021-10-26 19:32:24 +04:00
John Preston
2d53ef070f Allow to query RpWindow-s frame margins. 2021-09-16 10:26:34 +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
Ilya Fedin
b8485c0d8a Fix -Wunused-variable warnings 2021-07-13 21:24:22 +03:00
John Preston
1c004580eb Fix stay-on-top Ui::Window-s on macOS. 2021-06-08 17:11:02 +04:00
John Preston
b486260559 Don't change cursor in fixed-size windows. 2021-05-10 16:12:42 +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
e14bc4681d Take in account device pixel ratio when setting window extents 2021-02-17 18:04:06 +04:00
Ilya Fedin
6500dc9610 Qt-based title widget ported from tdesktop 2021-02-04 18:12:14 +04:00
John Preston
ae340a0b76 Fix build with Qt 5.6.2. 2020-10-07 18:17:37 +03:00
John Preston
fe09c42f0c Force separate window for Ui::Window. 2020-10-05 16:48:39 +03:00
John Preston
a1dbca8578 Fix closing Ui::Window from FullScreen on macOS. 2020-08-14 19:58:55 +04:00
John Preston
6735ee93dc Support custom drag area for Ui::Window on macOS. 2020-08-13 13:00:42 +04:00
John Preston
3d5108a878 Allow Ui::Window to become fullscreen. 2020-08-12 20:45:57 +04:00
John Preston
608b25bd32 Allow custom drag area for Ui::Window. 2020-08-12 17:34:40 +04:00