Git Product home page Git Product logo

Comments (16)

psifidotos avatar psifidotos commented on September 3, 2024

Explain the use case please because I can not think how this could be useful

from applet-window-appmenu.

mojtaba82 avatar mojtaba82 commented on September 3, 2024

Thanks for your response and excuse me for my bad English.
I request this feature for this widget and title widget and buttons widget.
when this widgets react to last maximized window instead active window then top panel act as titlebar of window that is viewed. Consider this situation

screenshot
in this situation seems that button title and menu are for Dolphin while they are for TexStudio.
Now if this widget control last Maximized window then button title and menu control Dolphin and in my opinion it is better way.
If you add an option for this I appriciate you.
Thanks in advance

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

this is not as simple as adding an option for this,

The use case you are describing has consequences that do not take into account the global menu limitations. The global menu infrastructure can show only one app menu at each time and that could be only the active window one or the last active window one if the new active window does not provide any app menu. In multi-screen environment that is a mess.

In your use case how the user could access the TexStudio menu if that feature is implemented? TexStudio is its active application and there is no way to access its menu, that is a mess from user point of view....

So in any case I could accept patches that take into account the above considerations and solve the mentioned issue but I personally wouldnt try to follow that road because it is probably a dead end.

from applet-window-appmenu.

mojtaba82 avatar mojtaba82 commented on September 3, 2024

Anyway I appreciate you for these nice widgets.

from applet-window-appmenu.

trmdi avatar trmdi commented on September 3, 2024

Is it possible to keep the menu of the last maximized window visible on the view, but right before the buttons receive mouse click events, we send a request to make that window becomes active first, then send the real click event later?

In your use case how the user could access the TexStudio menu if that feature is implemented? TexStudio is its active application and there is no way to access its menu, that is a mess from user point of view....

This is now possible if you use @Zren's Material decoration.

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

Is it possible to keep the menu of the last maximized window visible on the view, but right before the buttons receive mouse click events, we send a request to make that window becomes active first, then send the real click event later?

Why do you need this trick of events?

from applet-window-appmenu.

trmdi avatar trmdi commented on September 3, 2024

Is it possible to keep the menu of the last maximized window visible on the view, but right before the buttons receive mouse click events, we send a request to make that window becomes active first, then send the real click event later?

Why do you need this trick of events?

Because I don't know if you can directly send a click request to a button of the last maximized window, if this window is not the current active one.

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

Is it possible to keep the menu of the last maximized window visible on the view, but right before the buttons receive mouse click events, we send a request to make that window becomes active first, then send the real click event later?

Why do you need this trick of events?

Because I don't know if you can directly send a click request to a button of the last maximized window, if this window is not the current active one.

Why do you want to send a click request?

from applet-window-appmenu.

trmdi avatar trmdi commented on September 3, 2024

Is it possible to keep the menu of the last maximized window visible on the view, but right before the buttons receive mouse click events, we send a request to make that window becomes active first, then send the real click event later?

Why do you need this trick of events?

Because I don't know if you can directly send a click request to a button of the last maximized window, if this window is not the current active one.

Why do you want to send a click request?

The 1st click is to activate the window, the 2nd is to open the menu.

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

Why dont we talk at telegram? You can find me as psifidotos

from applet-window-appmenu.

trmdi avatar trmdi commented on September 3, 2024

This is as a demonstration in which you can imagine Firefox is the Appmenu applet. See I imagine how it works:
https://streamable.com/9fqly8

// sorry I have to sleep now, it's too late here. See you tomorrow. :P

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

I dont think forwarding click events etc to main window is a good way to do something. Such implementation could be possible under x11 but it couldnt be supported under wayland.

The biggest problem with showing menu for last maximized window is:

  1. It is difficult to support it also for plasma panels
  2. If we show appmenu for last maximized window we could end up with no visible appmenu for the active window.
  3. Providing last maximized window data through Latte it is possible but it should be implemented like LastActiveWindow and this is a bit/a lot of work

from applet-window-appmenu.

mojtaba82 avatar mojtaba82 commented on September 3, 2024

Hi. @trmdi.
I use zren Material decoration and no need to menu of last maximized window any more.

from applet-window-appmenu.

trmdi avatar trmdi commented on September 3, 2024

I dont think forwarding click events etc to main window is a good way to do something. Such implementation could be possible under x11 but it couldnt be supported under wayland.

The biggest problem with showing menu for last maximized window is:

1. It is difficult to support it also for plasma panels

2. If we show appmenu for last maximized window we could end up with no visible appmenu for the active window.

3. Providing last maximized window data through Latte it is possible but it should be implemented like LastActiveWindow and this is a bit/a lot of work

The menus of all windows are still kept, we can just call it through dbus with the window's serviceName and objectPath... right?

from applet-window-appmenu.

psifidotos avatar psifidotos commented on September 3, 2024

I dont think forwarding click events etc to main window is a good way to do something. Such implementation could be possible under x11 but it couldnt be supported under wayland.
The biggest problem with showing menu for last maximized window is:

1. It is difficult to support it also for plasma panels

2. If we show appmenu for last maximized window we could end up with no visible appmenu for the active window.

3. Providing last maximized window data through Latte it is possible but it should be implemented like LastActiveWindow and this is a bit/a lot of work

The menus of all windows are still kept, we can just call it through dbus with the window's serviceName and objectPath... right?

the problem is not to call it, but to keep track of last maximized window history, to know at all times what is the last maximized window.

from applet-window-appmenu.

mojtaba82 avatar mojtaba82 commented on September 3, 2024

Hi @trmdi
If you want simulate top desktop panel to act as window titlebar it would be better to simulate titlebar to merge with top panel when maximized. Like this
image

from applet-window-appmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.