Code Review
/
apps
/
agl-service-windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove floating surfaces when activate surface
[apps/agl-service-windowmanager.git]
/
src
/
app.cpp
diff --git
a/src/app.cpp
b/src/app.cpp
index
936a8bc
..
64a1835
100644
(file)
--- a/
src/app.cpp
+++ b/
src/app.cpp
@@
-36,7
+36,7
@@
#include <regex>
#include <thread>
#include <regex>
#include <thread>
-#include "wm
-
client.hpp"
+#include "wm
_
client.hpp"
extern "C"
extern "C"
@@
-872,6
+872,11
@@
void App::api_activate_surface(char const *appid, char const *drawing_name, char
auto client = app_list->lookUpClient(id);
auto client = app_list->lookUpClient(id);
+ unsigned srfc = client->surfaceID(role);
+ if(srfc != INVALID_SURFACE_ID){
+ // remove floating surface
+ app_list->removeFloatingSurface(client->surfaceID(role));
+ }
/*
* Queueing Phase
*/
/*
* Queueing Phase
*/