Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
8ef8a659
Commit
8ef8a659
authored
Oct 28, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB-X11: auto hide mouse cursor
parent
28bcdf24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+8
-4
No files found.
modules/video_output/xcb/x11.c
View file @
8ef8a659
...
...
@@ -76,6 +76,7 @@ struct vout_display_sys_t
xcb_connection_t
*
conn
;
vout_window_t
*
embed
;
/* VLC window (when windowed) */
xcb_cursor_t
cursor
;
/* blank cursor */
xcb_window_t
window
;
/* drawable X window */
xcb_gcontext_t
gc
;
/* context to put images */
bool
shm
;
/* whether to use MIT-SHM */
...
...
@@ -277,6 +278,8 @@ static int Open (vlc_object_t *obj)
}
msg_Dbg
(
vd
,
"using X11 window %08"
PRIx32
,
p_sys
->
window
);
msg_Dbg
(
vd
,
"using X11 graphic context %08"
PRIx32
,
p_sys
->
gc
);
p_sys
->
cursor
=
CreateBlankCursor
(
p_sys
->
conn
,
scr
);
p_sys
->
visible
=
false
;
/* */
...
...
@@ -507,12 +510,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return
VLC_SUCCESS
;
}
/* TODO */
#if 0
/* Hide the mouse. It will be send when
* vout_display_t::info.b_hide_mouse is false */
VOUT_DISPLAY_HIDE_MOUSE,
#endif
case
VOUT_DISPLAY_HIDE_MOUSE
:
xcb_change_window_attributes
(
p_sys
->
conn
,
p_sys
->
embed
->
handle
.
xid
,
XCB_CW_CURSOR
,
&
(
uint32_t
){
p_sys
->
cursor
});
return
VLC_SUCCESS
;
default:
msg_Err
(
vd
,
"Unknown request in XCB vout display"
);
return
VLC_EGENERIC
;
...
...
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