Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
15e86473
Commit
15e86473
authored
Jul 10, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Layer shell Protocol error when cover screen is disabled
Older versions of gtk4-layer-shell produce a Wayland protocol error
parent
f0268d71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
controlCenter.vala
src/controlCenter/controlCenter.vala
+10
-5
No files found.
src/controlCenter/controlCenter.vala
View file @
15e86473
...
@@ -408,14 +408,16 @@ namespace SwayNotificationCenter {
...
@@ -408,14 +408,16 @@ namespace SwayNotificationCenter {
// Set whether the control center should cover the whole screen or not
// Set whether the control center should cover the whole screen or not
bool
cover_screen
=
ConfigModel
.
instance
.
layer_shell_cover_screen
;
bool
cover_screen
=
ConfigModel
.
instance
.
layer_shell_cover_screen
;
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
cover_screen
);
if
(
cover_screen
)
{
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
cover_screen
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
cover_screen
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
RIGHT
,
cover_screen
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
cover_screen
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
cover_screen
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
RIGHT
,
cover_screen
);
if
(!
ConfigModel
.
instance
.
layer_shell_cover_screen
)
{
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
cover_screen
);
}
else
{
switch
(
pos_x
)
{
switch
(
pos_x
)
{
case
PositionX
.
LEFT
:
case
PositionX
.
LEFT
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
RIGHT
,
false
);
break
;
break
;
case
PositionX
.
CENTER
:
case
PositionX
.
CENTER
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
true
);
...
@@ -423,6 +425,7 @@ namespace SwayNotificationCenter {
...
@@ -423,6 +425,7 @@ namespace SwayNotificationCenter {
break
;
break
;
default
:
default
:
case
PositionX
.
RIGHT
:
case
PositionX
.
RIGHT
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
LEFT
,
false
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
RIGHT
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
RIGHT
,
true
);
break
;
break
;
}
}
...
@@ -434,12 +437,14 @@ namespace SwayNotificationCenter {
...
@@ -434,12 +437,14 @@ namespace SwayNotificationCenter {
default
:
default
:
case
PositionY
.
TOP
:
case
PositionY
.
TOP
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
false
);
break
;
break
;
case
PositionY
.
CENTER
:
case
PositionY
.
CENTER
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
true
);
break
;
break
;
case
PositionY
.
BOTTOM
:
case
PositionY
.
BOTTOM
:
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
TOP
,
false
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
true
);
GtkLayerShell
.
set_anchor
(
this
,
GtkLayerShell
.
Edge
.
BOTTOM
,
true
);
break
;
break
;
}
}
...
...
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