Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9d53a1ae
Commit
9d53a1ae
authored
Jun 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Get rid of the explicit colormap management.
parent
e705764c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
window.c
dlls/winex11.drv/window.c
+1
-15
No files found.
dlls/winex11.drv/window.c
View file @
9d53a1ae
...
...
@@ -1879,7 +1879,6 @@ void X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
* SetFocus (X11DRV.@)
*
* Set the X focus.
* Explicit colormap management seems to work only with OLVWM.
*/
void
X11DRV_SetFocus
(
HWND
hwnd
)
{
...
...
@@ -1887,18 +1886,7 @@ void X11DRV_SetFocus( HWND hwnd )
struct
x11drv_win_data
*
data
;
XWindowChanges
changes
;
/* If setting the focus to 0, uninstall the colormap */
if
(
!
hwnd
&&
root_window
==
DefaultRootWindow
(
display
))
{
wine_tsx11_lock
();
if
(
X11DRV_PALETTE_PaletteFlags
&
X11DRV_PALETTE_PRIVATE
)
XUninstallColormap
(
display
,
X11DRV_PALETTE_PaletteXColormap
);
wine_tsx11_unlock
();
return
;
}
hwnd
=
GetAncestor
(
hwnd
,
GA_ROOT
);
if
(
!
(
hwnd
=
GetAncestor
(
hwnd
,
GA_ROOT
)))
return
;
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
return
;
if
(
data
->
managed
||
!
data
->
whole_window
)
return
;
...
...
@@ -1913,8 +1901,6 @@ void X11DRV_SetFocus( HWND hwnd )
XSetInputFocus
(
display
,
data
->
whole_window
,
RevertToParent
,
/* CurrentTime */
GetMessageTime
()
-
EVENT_x11_time_to_win32_time
(
0
));
if
(
X11DRV_PALETTE_PaletteFlags
&
X11DRV_PALETTE_PRIVATE
)
XInstallColormap
(
display
,
X11DRV_PALETTE_PaletteXColormap
);
}
wine_tsx11_unlock
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment