GTK needs to generate NS_DISPLAYCHANGED event when the display depth changes

RESOLVED INVALID

Status

defect
RESOLVED INVALID
18 years ago
10 years ago

People

(Reporter: kmcclusk, Assigned: kmcclusk)

Tracking

Trunk
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

18 years ago
This bug was split off from bug 6061. Changing bit depth/# of colors busts
chrome, images

On GTK we need to add a method to nsWindow which is called when the display has
changed:

PRBool nsWindow::ReportDisplayChange()
{
	// nsEvent
	nsGUIEvent changeEvent;
	changeEvent.eventStructType = NS_GUI_EVENT;
	changeEvent.message = NS_DISPLAYCHANGED;
	changeEvent.time = PR_IntervalNow();

	// nsGUIEvent
	changeEvent.widget		= this;
	changeEvent.nativeMsg		= nsnull;

	// dispatch event
	return (DispatchWindowEvent(changeEvent));
}

The call to DisplayWindowEvent will take care of getting the message to the
viewmanager.
(Assignee)

Comment 1

18 years ago
This bug is invalid.

There isn't any way to dynamically change the display depth.
To change the display depth you must relaunch the xserver. 
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.