added resource session.screen<N>.slit.acceptKdeDockapps
This commit is contained in:
parent
9daf464b28
commit
1bcc966153
4 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0.1:
|
||||
*07/12/25:
|
||||
* Added resource session.screen<N>.slit.acceptKdeDockapps: <boolean> (Mark)
|
||||
Screen.cc Slit.cc/hh
|
||||
*07/12/23:
|
||||
* Added new style items window.(un)focus.border{Width,Color} (Mark)
|
||||
FbWinFrameTheme.cc/hh FbWinFrame.cc
|
||||
|
|
|
@ -1278,7 +1278,7 @@ bool BScreen::addKdeDockapp(Window client) {
|
|||
FbTk::EventManager *evm = FbTk::EventManager::instance();
|
||||
if (handler == 0) {
|
||||
#ifdef SLIT
|
||||
if (slit() != 0)
|
||||
if (slit() != 0 && slit()->acceptKdeDockapp())
|
||||
slit()->addClient(client);
|
||||
else
|
||||
#endif // SLIT
|
||||
|
@ -1311,7 +1311,7 @@ FluxboxWindow *BScreen::createWindow(Window client) {
|
|||
if (winclient->initial_state == WithdrawnState) {
|
||||
delete winclient;
|
||||
#ifdef SLIT
|
||||
if (slit())
|
||||
if (slit() && !isKdeDockapp(client))
|
||||
slit()->addClient(client);
|
||||
#endif // SLIT
|
||||
return 0;
|
||||
|
|
|
@ -286,6 +286,8 @@ Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename)
|
|||
m_strut(0),
|
||||
// resources
|
||||
// lock in first resource
|
||||
m_rc_kde_dockapp(scr.resourceManager(), true,
|
||||
scr.name() + ".slit.acceptKdeDockapps", scr.altName() + ".Slit.AcceptKdeDockapps"),
|
||||
m_rc_auto_hide(scr.resourceManager().lock(), false,
|
||||
scr.name() + ".slit.autoHide", scr.altName() + ".Slit.AutoHide"),
|
||||
// TODO: this resource name must change
|
||||
|
@ -442,6 +444,9 @@ void Slit::addClient(Window w) {
|
|||
if (w == None)
|
||||
return;
|
||||
|
||||
if (!acceptKdeDockapp() && screen().isKdeDockapp(w))
|
||||
return;
|
||||
|
||||
// Look for slot in client list by name
|
||||
SlitClient *client = 0;
|
||||
string match_name;
|
||||
|
|
|
@ -112,6 +112,7 @@ public:
|
|||
int layerNumber() const { return m_layeritem->getLayerNum(); }
|
||||
|
||||
inline bool isHidden() const { return m_hidden; }
|
||||
inline bool acceptKdeDockapp() const { return *m_rc_kde_dockapp; }
|
||||
inline bool doAutoHide() const { return *m_rc_auto_hide; }
|
||||
inline Direction direction() const { return *m_rc_direction; }
|
||||
inline Placement placement() const { return *m_rc_placement; }
|
||||
|
@ -173,7 +174,7 @@ private:
|
|||
static unsigned int s_eventmask;
|
||||
Strut *m_strut;
|
||||
|
||||
FbTk::Resource<bool> m_rc_auto_hide, m_rc_maximize_over;
|
||||
FbTk::Resource<bool> m_rc_kde_dockapp, m_rc_auto_hide, m_rc_maximize_over;
|
||||
FbTk::Resource<Slit::Placement> m_rc_placement;
|
||||
FbTk::Resource<Slit::Direction> m_rc_direction;
|
||||
FbTk::Resource<int> m_rc_alpha, m_rc_on_head;
|
||||
|
|
Loading…
Reference in a new issue