Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
7cd58b27
Commit
7cd58b27
authored
Aug 28, 2015
by
Martin Flöser
Browse files
[server] Implement raise/lower in QtExtendedSurfaceInterface
parent
cfd0227a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/wayland/server/qtsurfaceextension_interface.cpp
View file @
7cd58b27
...
...
@@ -151,15 +151,13 @@ const struct qt_extended_surface_interface QtExtendedSurfaceInterface::Private::
void
QtExtendedSurfaceInterface
::
Private
::
lowerCallback
(
wl_client
*
client
,
wl_resource
*
resource
)
{
Q_UNUSED
(
client
)
Q_UNUSED
(
resource
)
// ignore
emit
cast
<
Private
>
(
resource
)
->
q_func
()
->
lowerRequested
();
}
void
QtExtendedSurfaceInterface
::
Private
::
raiseCallback
(
wl_client
*
client
,
wl_resource
*
resource
)
{
Q_UNUSED
(
client
)
Q_UNUSED
(
resource
)
// ignore
emit
cast
<
Private
>
(
resource
)
->
q_func
()
->
raiseRequested
();
}
void
QtExtendedSurfaceInterface
::
Private
::
setContentOrientationMaskCallback
(
wl_client
*
client
,
wl_resource
*
resource
,
int32_t
orientation
)
...
...
src/wayland/server/qtsurfaceextension_interface.h
View file @
7cd58b27
...
...
@@ -65,6 +65,18 @@ public:
void
close
();
Q_SIGNALS:
/**
* Requests that the window be raised to appear above other windows.
* @since 5.5
**/
void
raiseRequested
();
/**
* Requests that the window be lowered to appear below other windows.
* @since 5.5
**/
void
lowerRequested
();
private:
friend
class
QtSurfaceExtensionInterface
;
explicit
QtExtendedSurfaceInterface
(
QtSurfaceExtensionInterface
*
shell
,
SurfaceInterface
*
parent
,
wl_resource
*
parentResource
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment