Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

303
Views
Electron - How to detect maximize event?

I want to change maximize icon when the window is maximized.

How can i detect when the window maximized by double click on the title bar or by moving the window top of the screen.

Without running isMaximized() constantly.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can listen to the maximize or the enter-full-screen event on your current window. The difference is that maximize is called when window is maximized but the enter-full-screen is called when the user maximized the window. You can read more about these events here

mainWindow.on('maximize', () => {
    // do something
})

or

mainWindow.on('enter-full-screen', () => {
    // do something
})
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!