forked from github_mirror/framelesshelper
minor fixes of previous commit
This commit is contained in:
parent
5b36fe8a81
commit
c3fa2f6920
|
@ -235,9 +235,9 @@ using gchararray = char *;
|
||||||
using gpointer = void *;
|
using gpointer = void *;
|
||||||
using gint64 = int64_t;
|
using gint64 = int64_t;
|
||||||
using guint64 = uint64_t;
|
using guint64 = uint64_t;
|
||||||
using gsize = unsigned long;
|
using gsize = unsigned int;
|
||||||
|
|
||||||
using GType = gsize;
|
using GType = unsigned long;
|
||||||
using GValue = struct _GValue;
|
using GValue = struct _GValue;
|
||||||
using GObject = struct _GObject;
|
using GObject = struct _GObject;
|
||||||
using GClosure = struct _GClosure;
|
using GClosure = struct _GClosure;
|
||||||
|
|
|
@ -579,7 +579,7 @@ struct Dpi
|
||||||
|
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
[[maybe_unused]] inline constexpr const VersionNumber WindowsVersions[] =
|
[[maybe_unused]] inline constexpr const VersionNumber WindowsVersions[] =
|
||||||
{
|
{
|
||||||
{ 5, 0, 2195}, // Windows 2000
|
{ 5, 0, 2195}, // Windows 2000
|
||||||
{ 5, 1, 2600}, // Windows XP
|
{ 5, 1, 2600}, // Windows XP
|
||||||
{ 5, 2, 3790}, // Windows XP x64 Edition or Windows Server 2003
|
{ 5, 2, 3790}, // Windows XP x64 Edition or Windows Server 2003
|
||||||
|
|
|
@ -422,6 +422,13 @@ void FramelessWidgetsHelperPrivate::attach()
|
||||||
}
|
}
|
||||||
m_window = window;
|
m_window = window;
|
||||||
|
|
||||||
|
if (!window->testAttribute(Qt::WA_DontCreateNativeAncestors)) {
|
||||||
|
window->setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||||
|
}
|
||||||
|
if (!window->testAttribute(Qt::WA_NativeWindow)) {
|
||||||
|
window->setAttribute(Qt::WA_NativeWindow);
|
||||||
|
}
|
||||||
|
|
||||||
g_widgetsHelper()->mutex.lock();
|
g_widgetsHelper()->mutex.lock();
|
||||||
WidgetsHelperData * const data = getWindowDataMutable();
|
WidgetsHelperData * const data = getWindowDataMutable();
|
||||||
if (!data || data->ready) {
|
if (!data || data->ready) {
|
||||||
|
|
Loading…
Reference in New Issue