Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
31a17863
Commit
31a17863
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Allow setting the class name at start
This allows X11 stuff to work properly.
parent
fcf10142
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#4383
passed
1 year ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/conio/ciolib.c
+1
-0
1 addition, 0 deletions
src/conio/ciolib.c
src/conio/ciolib.h
+1
-0
1 addition, 0 deletions
src/conio/ciolib.h
src/conio/x_events.c
+4
-2
4 additions, 2 deletions
src/conio/x_events.c
src/syncterm/syncterm.c
+1
-0
1 addition, 0 deletions
src/syncterm/syncterm.c
with
7 additions
and
2 deletions
src/conio/ciolib.c
+
1
−
0
View file @
31a17863
...
...
@@ -92,6 +92,7 @@ CIOLIBEXPORT int ciolib_initial_mode = C80;
CIOLIBEXPORT
enum
ciolib_scaling
ciolib_initial_scaling_type
=
CIOLIB_SCALING_INTERNAL
;
CIOLIBEXPORT
const
void
*
ciolib_initial_icon
=
syncicon64
;
CIOLIBEXPORT
size_t
ciolib_initial_icon_width
=
SYNCICON64_WIDTH
;
CIOLIBEXPORT
const
char
*
ciolib_initial_program_name
=
"CIOLIB"
;
CIOLIBEXPORT
const
uint32_t
*
ciolib_r2yptr
;
CIOLIBEXPORT
const
uint32_t
*
ciolib_y2rptr
;
...
...
This diff is collapsed.
Click to expand it.
src/conio/ciolib.h
+
1
−
0
View file @
31a17863
...
...
@@ -419,6 +419,7 @@ CIOLIBEXPORTVAR int ciolib_initial_mode;
CIOLIBEXPORTVAR
enum
ciolib_scaling
ciolib_initial_scaling_type
;
CIOLIBEXPORTVAR
const
void
*
ciolib_initial_icon
;
CIOLIBEXPORTVAR
size_t
ciolib_initial_icon_width
;
CIOLIBEXPORTVAR
const
char
*
ciolib_initial_program_name
;
CIOLIBEXPORTVAR
const
uint32_t
*
ciolib_r2yptr
;
CIOLIBEXPORTVAR
const
uint32_t
*
ciolib_y2rptr
;
...
...
This diff is collapsed.
Click to expand it.
src/conio/x_events.c
+
4
−
2
View file @
31a17863
...
...
@@ -566,8 +566,10 @@ static int init_window()
w
,
h
,
2
,
depth
,
InputOutput
,
visual
,
CWColormap
|
CWBorderPixel
|
CWBackPixel
,
&
wa
);
classhints
=
x11
.
XAllocClassHint
();
if
(
classhints
)
classhints
->
res_name
=
classhints
->
res_class
=
"CIOLIB"
;
if
(
classhints
)
{
classhints
->
res_name
=
ciolib_initial_program_name
;
classhints
->
res_class
=
"CIOLIB"
;
}
wmhints
=
x11
.
XAllocWMHints
();
wmhints
->
flags
=
0
;
if
(
wmhints
)
{
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/syncterm.c
+
1
−
0
View file @
31a17863
...
...
@@ -1561,6 +1561,7 @@ main(int argc, char **argv)
ciolib_initial_icon
=
syncterm_icon
.
pixel_data
;
ciolib_initial_icon_width
=
syncterm_icon
.
width
;
ciolib_initial_scaling
=
settings
.
scaling_factor
;
ciolib_initial_program_name
=
"syncterm"
;
ciolib_mode
=
settings
.
output_mode
;
if
(
settings
.
startup_mode
!=
SCREEN_MODE_CURRENT
)
text_mode
=
screen_to_ciolib
(
settings
.
startup_mode
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment