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
15dd4e11
Commit
15dd4e11
authored
Oct 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: follow mouse-events variable
parent
53231d2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
modules/video_output/xcb/common.c
modules/video_output/xcb/common.c
+7
-3
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+0
-1
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+0
-1
No files found.
modules/video_output/xcb/common.c
View file @
15dd4e11
...
@@ -132,9 +132,13 @@ vout_window_t *GetWindow (vout_display_t *vd,
...
@@ -132,9 +132,13 @@ vout_window_t *GetWindow (vout_display_t *vd,
XCB_CW_EVENT_MASK
,
&
value
);
XCB_CW_EVENT_MASK
,
&
value
);
/* Try to subscribe to click events */
/* Try to subscribe to click events */
/* (only one X11 client can get them, so might not work) */
/* (only one X11 client can get them, so might not work) */
value
|=
XCB_EVENT_MASK_BUTTON_PRESS
|
XCB_EVENT_MASK_BUTTON_RELEASE
;
if
(
var_CreateGetBool
(
vd
,
"mouse-events"
))
xcb_change_window_attributes
(
conn
,
wnd
->
handle
.
xid
,
{
XCB_CW_EVENT_MASK
,
&
value
);
value
|=
XCB_EVENT_MASK_BUTTON_PRESS
|
XCB_EVENT_MASK_BUTTON_RELEASE
;
xcb_change_window_attributes
(
conn
,
wnd
->
handle
.
xid
,
XCB_CW_EVENT_MASK
,
&
value
);
}
}
}
/* Find the selected screen */
/* Find the selected screen */
...
...
modules/video_output/xcb/x11.c
View file @
15dd4e11
...
@@ -257,7 +257,6 @@ static int Open (vlc_object_t *obj)
...
@@ -257,7 +257,6 @@ static int Open (vlc_object_t *obj)
const
uint32_t
mask
=
XCB_CW_EVENT_MASK
|
XCB_CW_COLORMAP
;
const
uint32_t
mask
=
XCB_CW_EVENT_MASK
|
XCB_CW_COLORMAP
;
const
uint32_t
values
[]
=
{
const
uint32_t
values
[]
=
{
/* XCB_CW_EVENT_MASK */
/* XCB_CW_EVENT_MASK */
XCB_EVENT_MASK_BUTTON_PRESS
|
XCB_EVENT_MASK_BUTTON_RELEASE
|
XCB_EVENT_MASK_VISIBILITY_CHANGE
,
XCB_EVENT_MASK_VISIBILITY_CHANGE
,
/* XCB_CW_COLORMAP */
/* XCB_CW_COLORMAP */
cmap
,
cmap
,
...
...
modules/video_output/xcb/xvideo.c
View file @
15dd4e11
...
@@ -447,7 +447,6 @@ static int Open (vlc_object_t *obj)
...
@@ -447,7 +447,6 @@ static int Open (vlc_object_t *obj)
{
{
const
uint32_t
mask
=
const
uint32_t
mask
=
/* XCB_CW_EVENT_MASK */
/* XCB_CW_EVENT_MASK */
XCB_EVENT_MASK_BUTTON_PRESS
|
XCB_EVENT_MASK_BUTTON_RELEASE
|
XCB_EVENT_MASK_VISIBILITY_CHANGE
;
XCB_EVENT_MASK_VISIBILITY_CHANGE
;
xcb_void_cookie_t
c
;
xcb_void_cookie_t
c
;
xcb_window_t
window
=
xcb_generate_id
(
conn
);
xcb_window_t
window
=
xcb_generate_id
(
conn
);
...
...
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