Re: [e-users] Borderless Firefox
Carsten Haitzler <[email protected]> Tue, 26 Aug 2025 05:51:34 +0100
| Newsgroups | gmane.comp.window-managers.enlightenment.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 25 Aug 2025 21:54:57 +0100 Wawrzek Niewodniczanski <[email protected]> said: > Hello, > > My Firefox become borderless. This is very annoying, because I cannot shade > it anymore. Not sure how it happens, maybe when I decided to start > everything with "factory" clean settings. Is that something on Firefox or > E side to fix? chances are it's firefox - chrome, firefox and just about every browser these days wants to do its own decorating (CSD) so it can put tabs in the titlebar. so they set up mwm hints to ask for no decoration. so check your ffox settings to toggle this on and off and restart ffox etc. if you really want you can go digging with xprop on the window :) but my guess is it's this and it's asking for no border (CSD) and then getting things wrong internally (or it's not - it's actually drawing just as it intends/should and yes - that is you lose e's titlebar and thus can't shade and that is what they want - it's drawing its own titlebar and borders now). > Oh, one more question. Is there a way for a dialog window to pop up in the > middle of the screen? It can easily disappear under the parent window. well "a dialog window" depends... what are the properties? it may function as a dialog but the app puts no hints on it to make it apparent to a wm that it is (no wm_transient hint - or this doesn't point to the correct parent). of it properly set this e will actually also move dialogs with the parent (move parent and dialog follows)e will also ensure the dialog is above the parent (so restack parent, child dialog follows and stays immediately above it). if app doesn't, then e has no idea. also e will center the dialog on thew parent window if this is set ... unless the app asks the window to be placed somewhere else specific. here's a sample app you can compile to test this: /* To Build cc dia.c -o dia `pkg-config --cflags --libs elementary` */ #include <Elementary.h> static void on_click(void *data, Evas_Object *obj, void *event_info) { Evas_Object *win, *pad, *btn; win = elm_win_util_dialog_add(data, "Dialog", "Dia"); elm_win_autodel_set(win, EINA_TRUE); pad = elm_frame_add(win); elm_object_style_set(pad, "pad_small"); elm_win_resize_object_add(win, pad); evas_object_show(pad); btn = elm_button_add(win); elm_object_text_set(btn, "Next Dialog"); elm_object_content_set(pad, btn); evas_object_smart_callback_add(btn, "clicked", on_click, win); evas_object_show(btn); evas_object_show(win); } EAPI_MAIN int elm_main(int argc, char **argv) { Evas_Object *win, *pad, *btn; elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); win = elm_win_util_standard_add("Main", "Hello, World!"); elm_win_autodel_set(win, EINA_TRUE); pad = elm_frame_add(win); elm_object_style_set(pad, "pad_huge"); elm_win_resize_object_add(win, pad); evas_object_show(pad); btn = elm_button_add(win); elm_object_text_set(btn, "Show The First Dialog"); elm_object_content_set(pad, btn); evas_object_smart_callback_add(btn, "clicked", on_click, win); evas_object_show(btn); evas_object_show(win); elm_run(); return 0; } ELM_MAIN() -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - [email protected]