Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
c61e42a0
Commit
c61e42a0
authored
Aug 27, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen sharing fixes
parent
07c1b55b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
_rfb.pyx
blink/screensharing/_rfb.pyx
+2
-2
vncviewer.py
blink/screensharing/vncviewer.py
+1
-1
sessions.py
blink/sessions.py
+1
-1
No files found.
blink/screensharing/_rfb.pyx
View file @
c61e42a0
...
@@ -164,7 +164,7 @@ cdef class RFBClient:
...
@@ -164,7 +164,7 @@ cdef class RFBClient:
try:
try:
with nogil:
with nogil:
self.client = rfbGetClient(8, 3, 4) # 24 bit color depth in 32 bits per pixel. Will change color depth and bpp later if needed.
self.client = rfbGetClient(8, 3, 4) # 24 bit color depth in 32 bits per pixel. Will change color depth and bpp later if needed.
server_host = strdup(
parent.host
)
server_host = strdup(
<bytes>parent.host.encode('utf8')
)
client_data = <rfbClientData*> calloc(1, sizeof(rfbClientData))
client_data = <rfbClientData*> calloc(1, sizeof(rfbClientData))
if not server_host or not client_data or not self.client:
if not server_host or not client_data or not self.client:
raise MemoryError("could not allocate RFB client")
raise MemoryError("could not allocate RFB client")
...
@@ -246,7 +246,7 @@ cdef class RFBClient:
...
@@ -246,7 +246,7 @@ cdef class RFBClient:
self.client.format.blueMax = 0xff
self.client.format.blueMax = 0xff
self.client.appData.requestedDepth = self.client.format.depth
self.client.appData.requestedDepth = self.client.format.depth
self.client.appData.enableJPEG = bool(self.client.format.bitsPerPixel != 8)
self.client.appData.enableJPEG = bool(self.client.format.bitsPerPixel != 8)
self.client.appData.encodingsString = s
elf.parent.settings.encodings
self.client.appData.encodingsString = s
trdup(<bytes>self.parent.settings.encodings.encode('utf-8'))
self.client.appData.compressLevel = self.parent.settings.compression
self.client.appData.compressLevel = self.parent.settings.compression
self.client.appData.qualityLevel = self.parent.settings.quality
self.client.appData.qualityLevel = self.parent.settings.quality
if self.connected:
if self.connected:
...
...
blink/screensharing/vncviewer.py
View file @
c61e42a0
...
@@ -438,7 +438,7 @@ class ScreensharingToolbox(base_class, ui_class):
...
@@ -438,7 +438,7 @@ class ScreensharingToolbox(base_class, ui_class):
with
Resources
.
directory
:
with
Resources
.
directory
:
self
.
setupUi
()
self
.
setupUi
()
parent
.
installEventFilter
(
self
)
parent
.
installEventFilter
(
self
)
self
.
animation
=
QPropertyAnimation
(
self
,
'pos'
)
self
.
animation
=
QPropertyAnimation
(
self
,
b
'pos'
)
self
.
animation
.
setDuration
(
250
)
self
.
animation
.
setDuration
(
250
)
self
.
animation
.
setDirection
(
QPropertyAnimation
.
Forward
)
self
.
animation
.
setDirection
(
QPropertyAnimation
.
Forward
)
self
.
animation
.
setEasingCurve
(
QEasingCurve
.
Linear
)
# or OutCirc with 300ms
self
.
animation
.
setEasingCurve
(
QEasingCurve
.
Linear
)
# or OutCirc with 300ms
...
...
blink/sessions.py
View file @
c61e42a0
...
@@ -5268,7 +5268,7 @@ class IncomingRequest(QObject):
...
@@ -5268,7 +5268,7 @@ class IncomingRequest(QObject):
self
.
dialog
.
screensharing_stream
.
setVisible
(
self
.
screensharing_stream
is
not
None
)
self
.
dialog
.
screensharing_stream
.
setVisible
(
self
.
screensharing_stream
is
not
None
)
if
self
.
screensharing_stream
is
not
None
:
if
self
.
screensharing_stream
is
not
None
:
if
self
.
screensharing_stream
.
handler
.
type
==
'active'
:
if
self
.
screensharing_stream
.
handler
.
type
==
'active'
:
self
.
dialog
.
screensharing_label
.
setText
(
'is offering
to share his screen
'
)
self
.
dialog
.
screensharing_label
.
setText
(
'is offering
screen sharing
'
)
else
:
else
:
self
.
dialog
.
screensharing_label
.
setText
(
'is asking to share your screen'
)
self
.
dialog
.
screensharing_label
.
setText
(
'is asking to share your screen'
)
# self.dialog.screensharing_stream.accepted = bool(proposal)
# self.dialog.screensharing_stream.accepted = bool(proposal)
...
...
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