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
Bug Fix : set source rectangle x, y is not 0
[apps/agl-service-windowmanager.git]
/
src
/
applist.hpp
diff --git
a/src/applist.hpp
b/src/applist.hpp
index
b25ca19
..
b4ac9e0
100644
(file)
--- a/
src/applist.hpp
+++ b/
src/applist.hpp
@@
-20,9
+20,9
@@
#include <string>
#include <map>
#include <memory>
#include <string>
#include <map>
#include <memory>
-#include "wm
-
client.hpp"
+#include "wm
_
client.hpp"
#include "request.hpp"
#include "request.hpp"
-#include "wm
-error.h
"
+#include "wm
_error.hpp
"
namespace wm
{
namespace wm
{
@@
-51,15
+51,17
@@
class AppList
int countClient() const;
std::shared_ptr<WMClient> lookUpClient(const std::string &appid);
void removeSurface(unsigned surface);
int countClient() const;
std::shared_ptr<WMClient> lookUpClient(const std::string &appid);
void removeSurface(unsigned surface);
- WMError popFloatingSurface(unsigned pid, unsigned *surface);
- WMError popFloatingSurface(const std::string &appid, unsigned *surface);
WMError appendRole(const std::string &appid, const std::string &role, unsigned surface);
WMError appendRole(const std::string &appid, const std::string &role, unsigned surface);
+
+ // Floating surface & client control
void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role);
void addFloatingSurface(unsigned surface, unsigned pid);
void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role);
void addFloatingSurface(unsigned surface, unsigned pid);
+ WMError popFloatingSurface(unsigned pid, unsigned *surface);
+ WMError popFloatingSurface(const std::string &appid, unsigned *surface);
+ void removeFloatingSurface(unsigned surface);
// Request Interface
// Request Interface
- unsigned
- currentRequestNumber() const;
+ unsigned currentRequestNumber() const;
unsigned getRequestNumber(const std::string &appid) const;
unsigned addAllocateRequest(WMRequest req);
/* TODO: consider, which is better WMClient or std::string appid?
unsigned getRequestNumber(const std::string &appid) const;
unsigned addAllocateRequest(WMRequest req);
/* TODO: consider, which is better WMClient or std::string appid?
@@
-73,11
+75,12
@@
class AppList
void next();
bool haveRequest() const;
void next();
bool haveRequest() const;
- struct WMTrigger getRequest(unsigned req_num);
- const std::vector<struct WMAction> &getActions(unsigned req_num);
+ struct WMTrigger getRequest(unsigned req_num
, bool* found
);
+ const std::vector<struct WMAction> &getActions(unsigned req_num
, bool* found
);
void clientDump();
void reqDump();
void clientDump();
void reqDump();
+ void dumpFloatingSurfaces();
private:
std::vector<WMRequest> req_list;
private:
std::vector<WMRequest> req_list;