Closed
Bug 506124
Opened 15 years ago
Closed 14 years ago
Fixup Aero Glass code
Categories
(Core :: Widget: Win32, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: robarnold, Assigned: jimm)
References
Details
Attachments
(6 files, 3 obsolete files)
11.92 KB,
patch
|
Details | Diff | Splinter Review | |
590 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
476 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
768 bytes,
application/vnd.mozilla.xul+xml
|
Details | |
11.93 KB,
patch
|
Details | Diff | Splinter Review | |
542 bytes,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
The alt-tab window doesn't use WS_THICKFRAME so it's possible to have a glass popup without it. WS_THICKFRAME introduces a frame that the user can use to resize the window; this is undesireable. This fix involves forcing the DWM to ignore the window style and render the window border.
Attachment #390348 -
Flags: review?(jmathies)
![]() |
Assignee | |
Comment 1•15 years ago
|
||
Comment on attachment 390348 [details] [diff] [review] v1.0 Looks good to me except, I think there's a typo - we don't have a MOZ_NTDDI_VISTA define. +#if MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_VISTA
Attachment #390348 -
Flags: review?(jmathies) → review+
Reporter | ||
Comment 2•15 years ago
|
||
Removed some unnecessary debugging cruft that got in.
Attachment #390348 -
Attachment is obsolete: true
Attachment #390357 -
Flags: review?(jmathies)
![]() |
Assignee | |
Updated•15 years ago
|
Attachment #390357 -
Flags: review?(jmathies) → review+
Reporter | ||
Updated•15 years ago
|
Attachment #390357 -
Flags: review?(vladimir)
Reporter | ||
Comment 3•15 years ago
|
||
Comment on attachment 390357 [details] [diff] [review] v1.1 This fixes three aero glass bugs.
Reporter | ||
Updated•15 years ago
|
Flags: blocking1.9.2?
Attachment #390357 -
Flags: review?(vladimir) → review+
Comment 4•15 years ago
|
||
Can this land?
Comment 5•15 years ago
|
||
Is there any hope of emulating this on Linux? I'm sure Compiz and/or GDK provide some nice way to do it.
Reporter | ||
Comment 6•15 years ago
|
||
(In reply to comment #5) > Is there any hope of emulating this on Linux? I'm sure Compiz and/or GDK > provide some nice way to do it. Most of the work to achieve the effect is done by Windows - we merely tell it where and paint with an alpha channel. If Compiz or GDK (GTK?) exposes a similar API, it probably wouldn't be too hard to imitate this feature for those systems. If you find some Linux APIs that seem promising, by all means please file a bug (CC me) and link to the documentation in it. This bug is for the implementation of the Windows feature.
Updated•15 years ago
|
Flags: blocking1.9.2? → blocking1.9.2+
Priority: -- → P1
![]() |
Assignee | |
Comment 7•14 years ago
|
||
Rob, does this really rely on bug 501490? It looks like it's pretty stand alone and could go in on it's own. It's blocking 1.9.2 and blocks 473152 since it might address that. If you want I can take a shot at getting it updated and landed so we can clear these out.
![]() |
Assignee | |
Comment 8•14 years ago
|
||
updated, sent to try for some testing.
![]() |
Assignee | |
Comment 9•14 years ago
|
||
wince touchups for the original patch. this passed try fine.
Attachment #390357 -
Attachment is obsolete: true
Attachment #403054 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 10•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/634385257da9
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
![]() |
Assignee | |
Updated•14 years ago
|
Attachment #403068 -
Flags: approval1.9.2?
![]() |
Assignee | |
Comment 11•14 years ago
|
||
Comment on attachment 403068 [details] [diff] [review] split out patch v.2 I guess this doesn't need approval since it's already blocking, but I'm going to wait a day or so before landing it on branch.
Attachment #403068 -
Flags: approval1.9.2?
Comment 12•14 years ago
|
||
no tests?
![]() |
Assignee | |
Comment 13•14 years ago
|
||
(In reply to comment #12) > no tests? Possibly for bugs 463305 & 473152, I'll look into it.
Updated•14 years ago
|
Target Milestone: mozilla1.9.2 → mozilla1.9.3a1
![]() |
Assignee | |
Comment 14•14 years ago
|
||
![]() |
Assignee | |
Comment 15•14 years ago
|
||
![]() |
Assignee | |
Comment 16•14 years ago
|
||
![]() |
Assignee | |
Updated•14 years ago
|
Assignee: tellrob → jmathies
![]() |
Assignee | |
Comment 17•14 years ago
|
||
sent to try for some test runs...
![]() |
Assignee | |
Comment 18•14 years ago
|
||
pushed to 1.9.2: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/66855e1ac080
status1.9.2:
--- → beta1-fixed
Comment 19•14 years ago
|
||
what are your plans for the tests?
![]() |
Assignee | |
Comment 20•14 years ago
|
||
(In reply to comment #19) > what are your plans for the tests? On my todo list for this week.
Comment 21•14 years ago
|
||
FWIW, this broke my Firefox trunk build on Windows XP. The problem is the added #ifdef WINCE around struct MARGINS at the top of nsUXThemeData.h. Apparently MARGINS is not a known symbol on my system and it's needed for the GetThemeMarginsPtr typedef later in the file. If I remove the #ifdef I can build and run it without problem.
![]() |
Assignee | |
Comment 22•14 years ago
|
||
(In reply to comment #21) > FWIW, this broke my Firefox trunk build on Windows XP. The problem is the > added #ifdef WINCE around struct MARGINS at the top of nsUXThemeData.h. > Apparently MARGINS is not a known symbol on my system and it's needed > for the GetThemeMarginsPtr typedef later in the file. > If I remove the #ifdef I can build and run it without problem. Hmm, what windows sdk are you building with?
Comment 23•14 years ago
|
||
INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\\include;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\\include\atl;C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;
![]() |
Assignee | |
Comment 24•14 years ago
|
||
(In reply to comment #23) > INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 > R2\\include;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 > R2\\include\atl;C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE; I don't have an env. to test this, curious if you can try replacing that ifdef with the ws03 define? #if MOZ_WINSDK_TARGETVER = MOZ_NTDDI_WS03 struct MARGINS .. #endif (or) #if MOZ_WINSDK_TARGETVER < MOZ_NTDDI_LONGHORN #endif and make sure you have ac_add_options --with-windows-version=502 in your .mozconfig when you configure.
Comment 25•14 years ago
|
||
#if MOZ_WINSDK_TARGETVER == MOZ_NTDDI_WS03 works (note the double equal-sign) #if MOZ_WINSDK_TARGETVER < MOZ_NTDDI_LONGHORN also works Yes, I have "ac_add_options --with-windows-version=502" in my .mozconfig and to be a bit more precise regarding my environment, it is "Visual C++ 8 (VS2005) Express" with the "Windows Server 2003 R2 Platform SDK".
![]() |
Assignee | |
Comment 26•14 years ago
|
||
Attachment #404999 -
Flags: review?(roc)
Attachment #404999 -
Flags: review?(roc) → review+
![]() |
Assignee | |
Comment 27•14 years ago
|
||
Comment on attachment 404999 [details] [diff] [review] [checked-in] 502 sdk patch http://hg.mozilla.org/mozilla-central/rev/e2f0a8ec44c5
Attachment #404999 -
Attachment description: follow up 502 sdk patch for margins struct → [checked-in] 502 sdk patch
![]() |
Assignee | |
Updated•14 years ago
|
Attachment #404999 -
Flags: approval1.9.2?
![]() |
Assignee | |
Comment 28•14 years ago
|
||
Comment on attachment 404999 [details] [diff] [review] [checked-in] 502 sdk patch err, sorry, no need for that, it's blocking.
Attachment #404999 -
Flags: approval1.9.2?
![]() |
Assignee | |
Comment 29•14 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/cb5bfea4b8aa
Comment 30•14 years ago
|
||
Comment on attachment 403068 [details] [diff] [review] split out patch v.2 > static PRBool CheckForCompositor() { > BOOL compositionIsEnabled = FALSE; > if(dwmIsCompositionEnabledPtr) > dwmIsCompositionEnabledPtr(&compositionIsEnabled); > return sHaveCompositor = (compositionIsEnabled != 0); > } >+#endif // MOZ_WINSDK_TARGETVER >= MOZ_NTDDI_LONGHORN Unfortunately not all the calls to CheckForCompositor() are inside #ifdef although I was able to get my build working by removing all the #ifdef except the one guarding the dwmapi.h include.
You need to log in
before you can comment on or make changes to this bug.
Description
•