-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
@conqp Thank you very much for all this! I'm sorry I haven't been able to review it sooner but as soon as I'm available I'll try to get it merged if you're still happy with it. |
@GKFX Yes sure. I'm sorry that I misinterpreted the long silence here for a lack of interest. |
@conqp |
@dariuskl I am not too well versed with Firefox plugin development. If you have a better solution for decorating new windows (and probably any other solution is better than my hack), I think it'd be great if you contributed your ideas in form of code. :) |
@conqp One of the major issues with this PR is that it removes the titlebar from all windows owned by Firefox, not just the "real" browser windows that display a webpage. It's possible that @dariuskl's approach is the correct solution here, since the window created events seem to fire only for proper windows. |
@GKFX Well, the original script just decorated the first of the windows of the firefox process. |
I'm very happy to work with what you've done; my original script was quite limited and did only decorate one window. I was just suggesting that the window created events might be the solution to identifying which windows are appropriate to decorate. Although since there doesn't appear to be a straightforward link between the Window objects seen by the extension and the windows seen by the Python script (the IDs and even the initially reported titles are different) I'm considering just identifying browser windows on the basis that they contain a suitable string (such as "Firefox" or "Nightly") and are owned by the correct process. |
I also see the problem with identifying the main windows of firefox. |
Fair enough. :-) I opened pull request #19, which includes the listener. New windows are correctly (un-)decorated. However, still all windows are affected. Regarding that issue, I don't think there is a nice way of linking the Firefox windows to window manager IDs. Maybe it would be a solution to temporarily insert "markers" into the title with which browser windows can be differentiated? I'm not so sure yet whether this is a good idea, though. |
I took the liberty to completely refactor the python script
native.py
.I tested it with the dev-version of firefox.
Changes
namedtuple
andEnum
.If you have any questions, please contact me.