mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
systray: ignore XEMBED_MAPPED, everyone is not XEMBED aware
Like QT apps. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c4999bd59d
commit
adebbb5df2
1 changed files with 3 additions and 6 deletions
|
@ -88,8 +88,7 @@ statusbar_systray_refresh(statusbar_t *statusbar)
|
||||||
for(em = globalconf.embedded; em; em = em->next)
|
for(em = globalconf.embedded; em; em = em->next)
|
||||||
if(em->phys_screen == statusbar->phys_screen)
|
if(em->phys_screen == statusbar->phys_screen)
|
||||||
{
|
{
|
||||||
if(em->info.flags & XEMBED_MAPPED
|
if(config_win_vals[1] - config_win_vals[2] >= (uint32_t) statusbar->sw->geometry.y)
|
||||||
&& config_win_vals[1] - config_win_vals[2] >= (uint32_t) statusbar->sw->geometry.y)
|
|
||||||
{
|
{
|
||||||
xcb_map_window(globalconf.connection, em->win);
|
xcb_map_window(globalconf.connection, em->win);
|
||||||
xcb_configure_window(globalconf.connection, em->win,
|
xcb_configure_window(globalconf.connection, em->win,
|
||||||
|
@ -114,8 +113,7 @@ statusbar_systray_refresh(statusbar_t *statusbar)
|
||||||
for(em = globalconf.embedded; em; em = em->next)
|
for(em = globalconf.embedded; em; em = em->next)
|
||||||
if(em->phys_screen == statusbar->phys_screen)
|
if(em->phys_screen == statusbar->phys_screen)
|
||||||
{
|
{
|
||||||
if(em->info.flags & XEMBED_MAPPED
|
if(config_win_vals[1] + config_win_vals[3] <= (uint32_t) statusbar->sw->geometry.y + statusbar->ctx->width)
|
||||||
&& config_win_vals[1] + config_win_vals[3] <= (uint32_t) statusbar->sw->geometry.y + statusbar->ctx->width)
|
|
||||||
{
|
{
|
||||||
xcb_map_window(globalconf.connection, em->win);
|
xcb_map_window(globalconf.connection, em->win);
|
||||||
xcb_configure_window(globalconf.connection, em->win,
|
xcb_configure_window(globalconf.connection, em->win,
|
||||||
|
@ -142,8 +140,7 @@ statusbar_systray_refresh(statusbar_t *statusbar)
|
||||||
if(em->phys_screen == statusbar->phys_screen)
|
if(em->phys_screen == statusbar->phys_screen)
|
||||||
{
|
{
|
||||||
/* if(x + width < systray.x + systray.width) */
|
/* if(x + width < systray.x + systray.width) */
|
||||||
if(em->info.flags & XEMBED_MAPPED
|
if(config_win_vals[0] + config_win_vals[2] <= (uint32_t) AREA_RIGHT(systray->area) + statusbar->sw->geometry.x)
|
||||||
&& config_win_vals[0] + config_win_vals[2] <= (uint32_t) AREA_RIGHT(systray->area) + statusbar->sw->geometry.x)
|
|
||||||
{
|
{
|
||||||
xcb_map_window(globalconf.connection, em->win);
|
xcb_map_window(globalconf.connection, em->win);
|
||||||
xcb_configure_window(globalconf.connection, em->win,
|
xcb_configure_window(globalconf.connection, em->win,
|
||||||
|
|
Loading…
Reference in a new issue