Improves usability on Linux. No more double title bar (#12600)

* Fix double title bar on Linux by removing WM decorations for GTK

* wip

* fix

* finish

* address review comment
This commit is contained in:
SoftFever
2026-03-04 22:29:27 +08:00
committed by GitHub
parent 47ab79041b
commit d50b4cbf3d
4 changed files with 191 additions and 16 deletions

View File

@@ -422,6 +422,11 @@ public:
uint32_t m_ulSHChangeNotifyRegister { 0 };
static constexpr int WM_USER_MEDIACHANGED { 0x7FFF }; // WM_USER from 0x0400 to 0x7FFF, picking the last one to not interfere with wxWidgets allocation
#endif // _WIN32
#ifdef __WXGTK__
class GtkResizeBorderHandler;
GtkResizeBorderHandler* m_resize_border_handler{nullptr};
#endif // __WXGTK__
};
wxDECLARE_EVENT(EVT_HTTP_ERROR, wxCommandEvent);