Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
323bec99
Commit
323bec99
authored
Nov 29, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Use BOOL type where appropriate.
parent
69d35a01
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
46 deletions
+47
-46
desktop.c
dlls/winex11.drv/desktop.c
+1
-1
event.c
dlls/winex11.drv/event.c
+3
-2
mouse.c
dlls/winex11.drv/mouse.c
+2
-2
window.c
dlls/winex11.drv/window.c
+1
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+17
-17
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+20
-20
xvidmode.c
dlls/winex11.drv/xvidmode.c
+3
-3
No files found.
dlls/winex11.drv/desktop.c
View file @
323bec99
...
...
@@ -117,7 +117,7 @@ void X11DRV_init_desktop( Window win, unsigned int width, unsigned int height )
RECT
primary_rect
=
get_primary_monitor_rect
();
root_window
=
win
;
managed_mode
=
0
;
/* no managed windows in desktop mode */
managed_mode
=
FALSE
;
/* no managed windows in desktop mode */
max_width
=
primary_rect
.
right
-
primary_rect
.
left
;
max_height
=
primary_rect
.
bottom
-
primary_rect
.
top
;
xinerama_init
(
width
,
height
);
...
...
dlls/winex11.drv/event.c
View file @
323bec99
...
...
@@ -925,7 +925,7 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event )
if
(
event
->
xany
.
window
==
x11drv_thread_data
()
->
clip_window
)
{
clipping_cursor
=
1
;
clipping_cursor
=
TRUE
;
return
;
}
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
...
...
@@ -945,7 +945,8 @@ static void X11DRV_MapNotify( HWND hwnd, XEvent *event )
*/
static
void
X11DRV_UnmapNotify
(
HWND
hwnd
,
XEvent
*
event
)
{
if
(
event
->
xany
.
window
==
x11drv_thread_data
()
->
clip_window
)
clipping_cursor
=
0
;
if
(
event
->
xany
.
window
==
x11drv_thread_data
()
->
clip_window
)
clipping_cursor
=
FALSE
;
}
...
...
dlls/winex11.drv/mouse.c
View file @
323bec99
...
...
@@ -400,7 +400,7 @@ static BOOL grab_clipping_window( const RECT *clip )
if
(
!
XGrabPointer
(
data
->
display
,
clip_window
,
False
,
PointerMotionMask
|
ButtonPressMask
|
ButtonReleaseMask
,
GrabModeAsync
,
GrabModeAsync
,
clip_window
,
None
,
CurrentTime
))
clipping_cursor
=
1
;
clipping_cursor
=
TRUE
;
if
(
!
clipping_cursor
)
{
...
...
@@ -430,7 +430,7 @@ void ungrab_clipping_window(void)
TRACE
(
"no longer clipping
\n
"
);
XUnmapWindow
(
display
,
clip_window
);
clipping_cursor
=
0
;
clipping_cursor
=
FALSE
;
SendMessageW
(
GetDesktopWindow
(),
WM_X11DRV_CLIP_CURSOR
,
0
,
0
);
}
...
...
dlls/winex11.drv/window.c
View file @
323bec99
...
...
@@ -68,7 +68,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(x11drv);
#define SWP_AGG_NOPOSCHANGE (SWP_NOSIZE | SWP_NOMOVE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE | SWP_NOZORDER)
/* is cursor clipping active? */
int
clipping_cursor
=
0
;
BOOL
clipping_cursor
=
FALSE
;
/* X context to associate a hwnd to an X window */
XContext
winContext
=
0
;
...
...
dlls/winex11.drv/x11drv.h
View file @
323bec99
...
...
@@ -216,9 +216,9 @@ extern INT X11DRV_YWStoDS( HDC hdc, INT height ) DECLSPEC_HIDDEN;
extern
const
int
X11DRV_XROPfunction
[];
extern
int
client_side_graphics
DECLSPEC_HIDDEN
;
extern
int
client_side_with_render
DECLSPEC_HIDDEN
;
extern
int
shape_layered_windows
DECLSPEC_HIDDEN
;
extern
BOOL
client_side_graphics
DECLSPEC_HIDDEN
;
extern
BOOL
client_side_with_render
DECLSPEC_HIDDEN
;
extern
BOOL
shape_layered_windows
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
X11DRV_XRender_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
struct
opengl_funcs
*
get_glx_driver
(
UINT
)
DECLSPEC_HIDDEN
;
...
...
@@ -363,22 +363,22 @@ extern XVisualInfo argb_visual DECLSPEC_HIDDEN;
extern
Colormap
default_colormap
DECLSPEC_HIDDEN
;
extern
XPixmapFormatValues
**
pixmap_formats
DECLSPEC_HIDDEN
;
extern
Window
root_window
DECLSPEC_HIDDEN
;
extern
int
clipping_cursor
DECLSPEC_HIDDEN
;
extern
BOOL
clipping_cursor
DECLSPEC_HIDDEN
;
extern
unsigned
int
screen_bpp
DECLSPEC_HIDDEN
;
extern
int
use_xkb
DECLSPEC_HIDDEN
;
extern
int
usexrandr
DECLSPEC_HIDDEN
;
extern
int
usexvidmode
DECLSPEC_HIDDEN
;
extern
BOOL
use_xkb
DECLSPEC_HIDDEN
;
extern
BOOL
usexrandr
DECLSPEC_HIDDEN
;
extern
BOOL
usexvidmode
DECLSPEC_HIDDEN
;
extern
BOOL
ximInComposeMode
DECLSPEC_HIDDEN
;
extern
int
use_take_focus
DECLSPEC_HIDDEN
;
extern
int
use_primary_selection
DECLSPEC_HIDDEN
;
extern
int
use_system_cursors
DECLSPEC_HIDDEN
;
extern
int
show_systray
DECLSPEC_HIDDEN
;
extern
int
grab_pointer
DECLSPEC_HIDDEN
;
extern
int
grab_fullscreen
DECLSPEC_HIDDEN
;
extern
int
usexcomposite
DECLSPEC_HIDDEN
;
extern
int
managed_mode
DECLSPEC_HIDDEN
;
extern
int
decorated_mode
DECLSPEC_HIDDEN
;
extern
int
private_color_map
DECLSPEC_HIDDEN
;
extern
BOOL
use_take_focus
DECLSPEC_HIDDEN
;
extern
BOOL
use_primary_selection
DECLSPEC_HIDDEN
;
extern
BOOL
use_system_cursors
DECLSPEC_HIDDEN
;
extern
BOOL
show_systray
DECLSPEC_HIDDEN
;
extern
BOOL
grab_pointer
DECLSPEC_HIDDEN
;
extern
BOOL
grab_fullscreen
DECLSPEC_HIDDEN
;
extern
BOOL
usexcomposite
DECLSPEC_HIDDEN
;
extern
BOOL
managed_mode
DECLSPEC_HIDDEN
;
extern
BOOL
decorated_mode
DECLSPEC_HIDDEN
;
extern
BOOL
private_color_map
DECLSPEC_HIDDEN
;
extern
int
primary_monitor
DECLSPEC_HIDDEN
;
extern
int
copy_default_colors
DECLSPEC_HIDDEN
;
extern
int
alloc_system_colors
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/x11drv_main.c
View file @
323bec99
...
...
@@ -62,23 +62,23 @@ Colormap default_colormap = None;
XPixmapFormatValues
**
pixmap_formats
;
unsigned
int
screen_bpp
;
Window
root_window
;
int
usexvidmode
=
1
;
int
usexrandr
=
1
;
int
usexcomposite
=
1
;
int
use_xkb
=
1
;
int
use_take_focus
=
1
;
int
use_primary_selection
=
0
;
int
use_system_cursors
=
1
;
int
show_systray
=
1
;
int
grab_pointer
=
1
;
int
grab_fullscreen
=
0
;
int
managed_mode
=
1
;
int
decorated_mode
=
1
;
int
private_color_map
=
0
;
BOOL
usexvidmode
=
TRUE
;
BOOL
usexrandr
=
TRUE
;
BOOL
usexcomposite
=
TRUE
;
BOOL
use_xkb
=
TRUE
;
BOOL
use_take_focus
=
TRUE
;
BOOL
use_primary_selection
=
FALSE
;
BOOL
use_system_cursors
=
TRUE
;
BOOL
show_systray
=
TRUE
;
BOOL
grab_pointer
=
TRUE
;
BOOL
grab_fullscreen
=
FALSE
;
BOOL
managed_mode
=
TRUE
;
BOOL
decorated_mode
=
TRUE
;
BOOL
private_color_map
=
FALSE
;
int
primary_monitor
=
0
;
int
client_side_graphics
=
1
;
int
client_side_with_render
=
1
;
int
shape_layered_windows
=
1
;
BOOL
client_side_graphics
=
TRUE
;
BOOL
client_side_with_render
=
TRUE
;
BOOL
shape_layered_windows
=
TRUE
;
int
copy_default_colors
=
128
;
int
alloc_system_colors
=
256
;
DWORD
thread_data_tls_index
=
TLS_OUT_OF_INDEXES
;
...
...
@@ -91,7 +91,7 @@ static void *err_callback_arg; /* error callback argument */
static
int
err_callback_result
;
/* error callback result */
static
unsigned
long
err_serial
;
/* serial number of first request */
static
int
(
*
old_error_handler
)(
Display
*
,
XErrorEvent
*
);
static
int
use_xim
=
1
;
static
BOOL
use_xim
=
TRUE
;
static
char
input_style
[
20
];
#define IS_OPTION_TRUE(ch) \
...
...
@@ -439,7 +439,7 @@ static void X11DRV_XComposite_Init(void)
if
(
!
xcomposite_handle
)
{
TRACE
(
"Unable to open %s, XComposite disabled
\n
"
,
SONAME_LIBXCOMPOSITE
);
usexcomposite
=
0
;
usexcomposite
=
FALSE
;
return
;
}
...
...
@@ -462,7 +462,7 @@ static void X11DRV_XComposite_Init(void)
TRACE
(
"XComposite extension could not be queried; disabled
\n
"
);
wine_dlclose
(
xcomposite_handle
,
NULL
,
0
);
xcomposite_handle
=
NULL
;
usexcomposite
=
0
;
usexcomposite
=
FALSE
;
return
;
}
TRACE
(
"XComposite is up and running error_base = %d
\n
"
,
xcomp_error_base
);
...
...
@@ -472,7 +472,7 @@ sym_not_found:
TRACE
(
"Unable to load function pointers from %s, XComposite disabled
\n
"
,
SONAME_LIBXCOMPOSITE
);
wine_dlclose
(
xcomposite_handle
,
NULL
,
0
);
xcomposite_handle
=
NULL
;
usexcomposite
=
0
;
usexcomposite
=
FALSE
;
}
#endif
/* defined(SONAME_LIBXCOMPOSITE) */
...
...
dlls/winex11.drv/xvidmode.c
View file @
323bec99
...
...
@@ -43,7 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(xvidmode);
#ifdef SONAME_LIBXXF86VM
extern
int
usexvidmode
;
extern
BOOL
usexvidmode
;
static
int
xf86vm_event
,
xf86vm_error
,
xf86vm_major
,
xf86vm_minor
;
...
...
@@ -163,7 +163,7 @@ void X11DRV_XF86VM_Init(void)
if
(
!
xvidmode_handle
)
{
TRACE
(
"Unable to open %s, XVidMode disabled
\n
"
,
SONAME_LIBXXF86VM
);
usexvidmode
=
0
;
usexvidmode
=
FALSE
;
return
;
}
...
...
@@ -242,7 +242,7 @@ sym_not_found:
TRACE
(
"Unable to load function pointers from %s, XVidMode disabled
\n
"
,
SONAME_LIBXXF86VM
);
wine_dlclose
(
xvidmode_handle
,
NULL
,
0
);
xvidmode_handle
=
NULL
;
usexvidmode
=
0
;
usexvidmode
=
FALSE
;
}
/***** GAMMA CONTROL *****/
...
...
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