Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
88f28b24
Commit
88f28b24
authored
Feb 13, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb SD: add a persistent item for the whole desktop
(TODO: add one item per X RandR view port)
parent
4a95265a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/services_discovery/xcb_apps.c
modules/services_discovery/xcb_apps.c
+16
-0
No files found.
modules/services_discovery/xcb_apps.c
View file @
88f28b24
...
@@ -68,6 +68,7 @@ struct services_discovery_sys_t
...
@@ -68,6 +68,7 @@ struct services_discovery_sys_t
static
void
*
Run
(
void
*
);
static
void
*
Run
(
void
*
);
static
void
Update
(
services_discovery_t
*
);
static
void
Update
(
services_discovery_t
*
);
static
void
DelItem
(
void
*
);
static
void
DelItem
(
void
*
);
static
void
AddDesktopItem
(
services_discovery_t
*
);
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
{
{
...
@@ -126,6 +127,9 @@ static int Open (vlc_object_t *obj)
...
@@ -126,6 +127,9 @@ static int Open (vlc_object_t *obj)
goto
error
;
goto
error
;
}
}
/* Add a permanent item for the entire desktop */
AddDesktopItem
(
sd
);
p_sys
->
root_window
=
scr
->
root
;
p_sys
->
root_window
=
scr
->
root
;
xcb_change_window_attributes
(
conn
,
scr
->
root
,
XCB_CW_EVENT_MASK
,
xcb_change_window_attributes
(
conn
,
scr
->
root
,
XCB_CW_EVENT_MASK
,
&
(
uint32_t
)
{
XCB_EVENT_MASK_PROPERTY_CHANGE
});
&
(
uint32_t
)
{
XCB_EVENT_MASK_PROPERTY_CHANGE
});
...
@@ -338,3 +342,15 @@ static void Update (services_discovery_t *sd)
...
@@ -338,3 +342,15 @@ static void Update (services_discovery_t *sd)
tdestroy
(
oldnodes
,
DelItem
);
tdestroy
(
oldnodes
,
DelItem
);
p_sys
->
nodes
=
newnodes
;
p_sys
->
nodes
=
newnodes
;
}
}
static
void
AddDesktopItem
(
services_discovery_t
*
sd
)
{
input_item_t
*
item
;
item
=
input_item_NewWithType
(
VLC_OBJECT
(
sd
),
"screen://"
,
_
(
"Desktop"
),
0
,
NULL
,
0
,
-
1
,
ITEM_TYPE_CARD
);
if
(
item
==
NULL
)
return
;
services_discovery_AddItem
(
sd
,
item
,
NULL
);
}
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