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
5e66bde2
Commit
5e66bde2
authored
May 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: flush when changing the cursor
This should fix cursor (un)hiding with some OpenGL back-ends
parent
bee6b903
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
modules/video_output/xcb/events.c
modules/video_output/xcb/events.c
+1
-0
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
+6
-2
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+1
-0
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+1
-0
No files found.
modules/video_output/xcb/events.c
View file @
5e66bde2
...
...
@@ -135,6 +135,7 @@ static void HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn,
/* show the default cursor */
xcb_change_window_attributes
(
conn
,
ev
->
event
,
XCB_CW_CURSOR
,
&
(
uint32_t
)
{
XCB_CURSOR_NONE
});
xcb_flush
(
conn
);
/* TODO it could be saved */
vout_display_PlacePicture
(
&
place
,
&
vd
->
source
,
vd
->
cfg
,
false
);
...
...
modules/video_output/xcb/glx.c
View file @
5e66bde2
...
...
@@ -553,10 +553,14 @@ static int Control (vout_display_t *vd, int query, va_list ap)
/* Hide the mouse. It will be send when
* vout_display_t::info.b_hide_mouse is false */
case
VOUT_DISPLAY_HIDE_MOUSE
:
xcb_change_window_attributes
(
XGetXCBConnection
(
sys
->
display
),
sys
->
embed
->
handle
.
xid
,
{
xcb_connection_t
*
conn
=
XGetXCBConnection
(
sys
->
display
);
xcb_change_window_attributes
(
conn
,
sys
->
embed
->
handle
.
xid
,
XCB_CW_CURSOR
,
&
(
uint32_t
){
sys
->
cursor
});
xcb_flush
(
conn
);
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_GET_OPENGL
:
{
...
...
modules/video_output/xcb/x11.c
View file @
5e66bde2
...
...
@@ -535,6 +535,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
case
VOUT_DISPLAY_HIDE_MOUSE
:
xcb_change_window_attributes
(
sys
->
conn
,
sys
->
embed
->
handle
.
xid
,
XCB_CW_CURSOR
,
&
(
uint32_t
){
sys
->
cursor
});
xcb_flush
(
sys
->
conn
);
return
VLC_SUCCESS
;
default:
...
...
modules/video_output/xcb/xvideo.c
View file @
5e66bde2
...
...
@@ -797,6 +797,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
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
});
xcb_flush
(
p_sys
->
conn
);
return
VLC_SUCCESS
;
case
VOUT_DISPLAY_RESET_PICTURES
:
assert
(
0
);
...
...
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