Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Evangelos Ribeiro Tzaras
pkg-phosh
Commits
48ed515c
Commit
48ed515c
authored
Aug 17, 2021
by
Guido Gunther
Browse files
monitor: Drop integer scale
Signed-off-by:
Guido Günther
<
guido.gunther@puri.sm
>
parent
c59d296b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.c
View file @
48ed515c
...
...
@@ -89,8 +89,8 @@ output_handle_scale (void *data,
{
PhoshMonitor
*
self
=
PHOSH_MONITOR
(
data
);
/* nothing to do */
self
->
wl_output_done
=
FALSE
;
self
->
scale
=
scale
;
}
...
...
@@ -404,7 +404,6 @@ phosh_monitor_class_init (PhoshMonitorClass *klass)
static
void
phosh_monitor_init
(
PhoshMonitor
*
self
)
{
self
->
scale
=
1
.
0
;
self
->
modes
=
g_array_new
(
FALSE
,
FALSE
,
sizeof
(
PhoshMonitorMode
));
self
->
power_mode
=
PHOSH_MONITOR_POWER_SAVE_MODE_OFF
;
}
...
...
src/monitor/monitor.h
View file @
48ed515c
...
...
@@ -117,7 +117,7 @@ struct _PhoshMonitor {
int
x
,
y
,
width
,
height
;
int
subpixel
;
gint32
transform
,
scale
;
gint32
transform
;
struct
{
gint32
x
,
y
,
width
,
height
;
...
...
src/overview.c
View file @
48ed515c
...
...
@@ -270,8 +270,8 @@ add_activity (PhoshOverview *self, PhoshToplevel *toplevel)
activity
=
phosh_activity_new
(
app_id
,
title
);
scale
=
phosh_monitor_get_fractional_scale
(
monitor
);
g_object_set
(
activity
,
"win-width"
,
monitor
->
width
/
scale
,
"win-height"
,
monitor
->
height
/
scale
,
"win-width"
,
(
int
)(
monitor
->
width
/
scale
)
,
"win-height"
,
(
int
)(
monitor
->
height
/
scale
)
,
"maximized"
,
phosh_toplevel_is_maximized
(
toplevel
),
NULL
);
g_object_set_data
(
G_OBJECT
(
activity
),
"toplevel"
,
toplevel
);
...
...
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